0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-12-01 17:30:59 +01:00

fix cycle check for exported functions

This commit is contained in:
John Chesley 2019-04-24 00:38:02 -04:00
parent b2e1355908
commit 73aca457d3

View File

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