Skip to content

Commit

Permalink
config(svelte.config.js): project内のfileのみruneを強制し、libraryには強制しないようにする
Browse files Browse the repository at this point in the history
  • Loading branch information
ryoppippi committed Jul 15, 2024
1 parent 737561c commit 96ea26d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,13 @@ const config = {
budouxPreprocess({ language: 'ja', attribute: 'data-budoux' }), // budouxを使って日本語の改行をいい感じにする。 https://github.com/google/budoux/tree/main/javascript https://github.com/ryoppippi/svelte-preprocess-budoux
],

compilerOptions: {
runes: true,
vitePlugin: {
dynamicCompileOptions({ filename }) {
/* sveltekit-tweet が rune に対応していないので、user script のみ rune を強制する https://github.com/sveltejs/svelte/issues/9632#issuecomment-1825498213 */
if (!filename.includes('node_modules')) {
return { runes: true };
}
},
},

kit: {
Expand Down

0 comments on commit 96ea26d

Please sign in to comment.