We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5f8c4e4 commit 85acc9fCopy full SHA for 85acc9f
.changeset/long-suns-happen.md
@@ -0,0 +1,5 @@
1
+---
2
+'@sveltejs/vite-plugin-svelte': patch
3
4
+
5
+fix: ensure svelte modules correctly run in DEV mode
packages/vite-plugin-svelte/src/index.js
@@ -200,6 +200,7 @@ export function svelte(inlineOptions) {
200
}
201
try {
202
const compileResult = svelteCompiler.compileModule(code, {
203
+ dev: !viteConfig.isProduction,
204
generate: ssr ? 'server' : 'client',
205
filename: moduleRequest.filename
206
});
0 commit comments