-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Description
Is your feature request related to a problem? Please describe.
In #5847 I expressed the concern that people might want to use module variables inside reactive statements, knowing that reactivity will not be triggered on changes to them. This means it should be possible to silence the warning.
Describe the solution you'd like
<!-- svelte-ignore module-script-reactive-declaration -->
at the top of the component or // svelte-ignore module-script-reactive-declaration
should silence the warning
How important is this feature to you?
Nice to have to not have this warning make unnecessary noise
Workaround in the meantime
You can globally silence this. For svelte-check
, do --compiler-warnings "module-script-reactive-declaration:ignore"
. A similar option is available for the VS Code extension.