fix cycle check for exported functions

pull/7738/head
John Chesley 7 years ago
parent 2d9697839c
commit b2e5becb12

@ -1002,6 +1002,8 @@ export default class Component {
if (walking.has(other_declaration)) { if (walking.has(other_declaration)) {
hoistable = false; hoistable = false;
} else if (other_declaration.type === 'ExportNamedDeclaration' && walking.has(other_declaration.declaration)) {
hoistable = false;
} else if (!is_hoistable(other_declaration)) { } else if (!is_hoistable(other_declaration)) {
hoistable = false; hoistable = false;
} }

Loading…
Cancel
Save