Skip to content

Commit

Permalink
fix: ensure svelte modules correctly run in DEV mode (#906)
Browse files Browse the repository at this point in the history
* fix: ensure svelte modules correctly run in DEV mode

* lint

* change to patch
  • Loading branch information
trueadm committed May 14, 2024
1 parent 5f8c4e4 commit 85acc9f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/long-suns-happen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/vite-plugin-svelte': patch
---

fix: ensure svelte modules correctly run in DEV mode
1 change: 1 addition & 0 deletions packages/vite-plugin-svelte/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ export function svelte(inlineOptions) {
}
try {
const compileResult = svelteCompiler.compileModule(code, {
dev: !viteConfig.isProduction,
generate: ssr ? 'server' : 'client',
filename: moduleRequest.filename
});
Expand Down

0 comments on commit 85acc9f

Please sign in to comment.