Skip to content

Commit

Permalink
fix: remove runes from compileModule
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikg committed Nov 10, 2023
1 parent ec4c530 commit 7d1b59d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/grumpy-hornets-applaud.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/vite-plugin-svelte': patch
---

fix compileModule call for optimizing libraries
3 changes: 1 addition & 2 deletions packages/vite-plugin-svelte/src/utils/esbuild.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,7 @@ async function compileSvelte(options, { filename, code }, statsCollection) {
// @ts-ignore doesn't exist in Svelte 4
const compiled = svelte.compileModule(code, {
filename,
generate: isSvelte5 ? 'client' : 'dom',
runes: true
generate: 'client'
});
if (endStat) {
endStat();
Expand Down

0 comments on commit 7d1b59d

Please sign in to comment.