-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
[Svelte 5] Enabling Runes mode via compilerOptions incorrectly enforces it for external libraries #9632
Comments
@dominikg I believe this is something that needs to happen at the bundler plugin level, right? |
Temporary workaround provided by @dominikg via discord
|
This is working as expected. The |
@Rich-Harris Setting @dominikg mentioned the following via Discord.
|
we may be able to pass more info into dynamicCompileOptions too. hopefully this is just needed for a transition period until libraries have been updated to support 5 |
Describe the bug
Non backwards-compatible Runes mode can be enabled via
compilerOptions
insvelte.config.js
https://svelte-5-preview.vercel.app/docs/runes#how-to-opt-in
However, doing this enforces the runes mode even for external libraries. This means that any libraries written in svelte-4.x cannot be imported.
Ideally, runes mode should only be enforced for the current app and not the external libaries
Reproduction
https://github.com/AgarwalPragy/svelte-issue-9632
src/routes/+page.svelte
Logs
System Info
System: OS: macOS 13.5.1 CPU: (8) arm64 Apple M2 Memory: 47.34 MB / 8.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 21.1.0 - /opt/homebrew/bin/node Yarn: 1.22.19 - /opt/homebrew/bin/yarn npm: 10.2.0 - /opt/homebrew/bin/npm pnpm: 8.10.2 - /opt/homebrew/bin/pnpm Browsers: Chrome: 119.0.6045.159 Safari: 16.6 npmPackages: svelte: ^5.0.0-next.1 => 5.0.0-next.11
Severity
blocking an upgrade
The text was updated successfully, but these errors were encountered: