Skip to content

Commit

Permalink
Update Svelte, Force runes only in lib
Browse files Browse the repository at this point in the history
  • Loading branch information
TeyKey1 committed Jul 27, 2024
1 parent 4e005c0 commit 93fafac
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"plop": "^4.0.1",
"prettier": "^3.1.1",
"prettier-plugin-svelte": "^3.2.3",
"svelte": "5.0.0-next.184",
"svelte": "5.0.0-next.200",
"svelte-check": "^3.7.1",
"svelte-highlight": "^7.3.0",
"svelte-persisted-store": "^0.9.2",
Expand Down
10 changes: 10 additions & 0 deletions svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ const config = {
})
],

vitePlugin: {
dynamicCompileOptions({ filename }) {
if (filename.includes('node_modules')) return { runes: false }; // Do not opt-in for runes only mode on deps
}
},

kit: {
adapter: adapter({
pages: 'build',
Expand All @@ -20,6 +26,10 @@ const config = {
alias: {
'svelte-konva': 'src/lib'
}
},

compilerOptions: {
runes: true
}
};

Expand Down

0 comments on commit 93fafac

Please sign in to comment.