We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5193636 commit 71cd00aCopy full SHA for 71cd00a
packages/svelte/src/compiler/phases/2-analyze/index.js
@@ -1010,6 +1010,9 @@ const runes_scope_tweaker = {
1010
name: node.local.name,
1011
alias: node.exported.name
1012
});
1013
+
1014
+ const binding = state.scope.get(node.local.name);
1015
+ if (binding) binding.reassigned = true;
1016
},
1017
ExportNamedDeclaration(node, { next, state }) {
1018
if (!node.declaration || state.ast_type !== 'instance') {
0 commit comments