-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
warningFilter stopped working with Svelte 5.10.0 #14654
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Looks like #14629 was the likely culprit |
The warning filter should filter by code, not by message. The message (which is not subject to versioning) changed (there's a link in a second line now). So do this instead:
@dominikg I noticed that v-p-s adds a warning filter for its own injected |
Closing since v-p-s was adjusted + see my message about code vs message etc |
Describe the bug
I have set the below warningFilter option in svelte.config.js.
It works up to [email protected], starting with [email protected] it has no effect.
See also: https://github.com/sveltejs/vite-plugin-svelte/issues/988
Reproduction
I can reproduce it with this svelte component:
Logs
16:57:48 [vite-plugin-svelte] src/lib/components/component/Spinner.svelte:37:1 Unused CSS selector "*"
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: