Skip to content

Commit f4cf61f

Browse files
committed
limit export handling to instance context
1 parent ec3da4a commit f4cf61f

File tree

1 file changed

+1
-1
lines changed
  • packages/svelte/src/compiler/phases/2-analyze

1 file changed

+1
-1
lines changed

packages/svelte/src/compiler/phases/2-analyze/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,7 @@ const runes_scope_tweaker = {
680680
});
681681
},
682682
ExportNamedDeclaration(node, { next, state }) {
683-
if (!node.declaration) {
683+
if (!node.declaration || state.ast_type !== 'instance') {
684684
return next();
685685
}
686686

0 commit comments

Comments
 (0)