fix: no static-state-reference warning in legacy mode

Doesn't make any sense there
pull/10865/head
Simon Holthausen 2 years ago
parent 86b3ea8c23
commit 0863329118

@ -1072,6 +1072,7 @@ const common_visitors = {
}
if (
context.state.analysis.runes &&
node !== binding.node &&
// If we have $state that can be proxied or frozen and isn't re-assigned, then that means
// it's likely not using a primitive value and thus this warning isn't that helpful.

Loading…
Cancel
Save