Skip to content

Commit f6eca83

Browse files
authored
fix: no static-state-reference warning in legacy mode (#10865)
Doesn't make any sense there
1 parent c87c2f4 commit f6eca83

File tree

1 file changed

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

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1072,6 +1072,7 @@ const common_visitors = {
10721072
}
10731073

10741074
if (
1075+
context.state.analysis.runes &&
10751076
node !== binding.node &&
10761077
// If we have $state that can be proxied or frozen and isn't re-assigned, then that means
10771078
// it's likely not using a primitive value and thus this warning isn't that helpful.

0 commit comments

Comments
 (0)