We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The doc and type says compileModule()'s options has warningFilter, but it actually doesn't.
Save and run this file
import { compileModule } from 'svelte/compiler' compileModule('let a = $state({ value: 0 })', { warningFilter: void 0, })
Results in the error
InternalCompileError { name: 'CompileError', code: 'options_unrecognised', message: 'Unrecognised compiler option warningFilter' }
No response
System: OS: macOS 15.0.1 CPU: (8) arm64 Apple M3 Memory: 294.86 MB / 24.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 22.9.0 - /opt/homebrew/bin/node npm: 10.9.0 - /opt/homebrew/bin/npm pnpm: 9.12.1 - /opt/homebrew/bin/pnpm bun: 1.1.30 - ~/.bun/bin/bun Browsers: Chrome: 130.0.6723.70 Safari: 18.0.1 npmPackages: svelte: ^5.1.3 => 5.1.3
annoyance
The text was updated successfully, but these errors were encountered:
fix: allow warningFilter option for compileModule
warningFilter
compileModule
0535a3f
fixes #14012
4f80ab6
Successfully merging a pull request may close this issue.
Describe the bug
The doc and type says compileModule()'s options has warningFilter, but it actually doesn't.
Reproduction
Save and run this file
Results in the error
Logs
No response
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: