fix cycle check for exported functions

pull/2543/head
John Chesley 7 years ago
parent b2e1355908
commit 73aca457d3

@ -1002,9 +1002,11 @@ 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;
} }
} }
else { else {

Loading…
Cancel
Save