Skip to content

Commit 71cd00a

Browse files
committed
fix
1 parent 5193636 commit 71cd00a

File tree

1 file changed

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

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1010,6 +1010,9 @@ const runes_scope_tweaker = {
10101010
name: node.local.name,
10111011
alias: node.exported.name
10121012
});
1013+
1014+
const binding = state.scope.get(node.local.name);
1015+
if (binding) binding.reassigned = true;
10131016
},
10141017
ExportNamedDeclaration(node, { next, state }) {
10151018
if (!node.declaration || state.ast_type !== 'instance') {

0 commit comments

Comments
 (0)