Releases: sveltejs/vite-plugin-svelte
Releases · sveltejs/vite-plugin-svelte
@sveltejs/[email protected]
Minor Changes
- Use transformWithEsbuild for vite script preprocessor (#173)
@sveltejs/[email protected]
Patch Changes
- Only add all Svelte dependencies to ssr.noExternal in SSR build (#169)
@sveltejs/[email protected]
Patch Changes
- Svelte libraries without any Svelte components are also added to ssr.noExternal (#166)
@sveltejs/[email protected]
Patch Changes
- Only optimize nested cjs dependencies (#163)
@sveltejs/[email protected]
@sveltejs/[email protected]
@sveltejs/[email protected]
Patch Changes
- add automatically excluded svelte dependencies to ssr.noExternal (#147)
@sveltejs/[email protected]
@sveltejs/[email protected]
@sveltejs/[email protected]
Major Changes
-
automatically include svelte in vite config optimizeDeps.include (#137)
Previously, svelte was automatically excluded. We include it now by default to improve deduplication.
As a result, svelte is pre-bundled by vite during dev, which it logs when starting the devserver
Pre-bundling dependencies: svelte/animate svelte/easing svelte/internal svelte/motion svelte/store (...and 2 more) (this will be run only when your dependencies or config have changed)
And it's also visible in the browsers network tab, where requests for svelte imports now start with
node_modules/.vite/
during dev.Check out the vite pre-bundling documentation for more information.
To get the old behavior back, add the following to your vite config
{ ['svelte']; }