known issues with rolldown-vite and svelte
#1143 8 days ago • Jun 23, 2025 if(condition)
from `esm-env' are not removed when the condition is false
https://github.com/rolldown/rolldown/issues/4786
https://github.com/rolldown/rolldown/issues/4258
https://github.com/vitejs/rolldown-vite/issues/229
This leads to larger output (eg development errorhandling is kept), but the app should still work as expected
server output can contain code that should only be added to client
https://github.com/rolldown/rolldown/issues/3403
This can lead to much larger output for server bundles, including broken apps.
Example:
svelte exports onMount
as a noop ()=>{}
unless the 'browser' exports condition is active so code like onMount(()=>doClientThings())
should not lead to any output for the server
If doClientThings imported a large library that expects browser globals to be available, it'll crash the server. Even if the app keeps working it can put large client only libraries into the server bundle which can be very bad on edge deployments.
emits empty css chunks
empty CSS chunks are emitted for each Svelte file and they're also not in the Vite manifest, causing read errors when sveltekit traverses CSS imports for mapping/inlining
https://github.com/vitejs/rolldown-vite/issues/267
dev
currently no known issues for vite dev
enableNativePlugins
css is not applied
https://github.com/vitejs/rolldown-vite/issues/213
improve support for environment api
#1137 20 days ago • Jun 11, 2025Split preprocessing and compiling into separate plugins
#729 26 days ago • Jun 5, 2025support loading css first
#1032 Mar 12, 2025.svelte
files are imported as js module.
But with vite ?direct
or ?inline
query urls, it is possible that the first request is not for the js module but the css.
Describe the proposed solution
In case the cache is empty when css is requested, compile.
Alternatives considered
keep current behavior, styles might not be needed before the js module
Importance
nice to haveCan't inspect disabled elements
#997 Nov 1, 2024<button disabled>
or <input disabled>
it seems i can't inspect it
Reproduction URL
some other time, sorry
Reproduction
No response
Logs
No response
System Info
next
Docs on svelte.dev
#942 Jul 11, 2024vite-plugin-svelte
doesn't really have a docs index page currently. There's the readme, but we might put different content on svelte.dev than what's there. There also isn't a clear order the docs pages should be displayed in the lefthand nav
Describe the proposed solution
Prefix the existing docs with 10-
, 20-
, etc. to provide an ordering that can be used in the lefthand nav. The docs with the smallest prefix should include some introductory material
Alternatives considered
it may be helpful to update the directory structure of various repos to align with each other, but I think that isn't strictly necessary and we can maintain a mapping of where docs live in each repo
Importance
i cannot use vite-plugin-svelte without itsvelte/internal import guard
#861 Feb 21, 2024