From 366b59c19410dbca694004116666a9d187140dad Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Wed, 12 Feb 2025 21:10:08 -0500 Subject: [PATCH] move compiler options to svelte.config.js, to remove red squigglies in editor --- playgrounds/sandbox/svelte.config.js | 9 +++++++++ playgrounds/sandbox/vite.config.js | 12 +----------- 2 files changed, 10 insertions(+), 11 deletions(-) create mode 100644 playgrounds/sandbox/svelte.config.js diff --git a/playgrounds/sandbox/svelte.config.js b/playgrounds/sandbox/svelte.config.js new file mode 100644 index 0000000000..68ac605385 --- /dev/null +++ b/playgrounds/sandbox/svelte.config.js @@ -0,0 +1,9 @@ +export default { + compilerOptions: { + hmr: false, + + experimental: { + async: true + } + } +}; diff --git a/playgrounds/sandbox/vite.config.js b/playgrounds/sandbox/vite.config.js index 80a635a239..5ce0204217 100644 --- a/playgrounds/sandbox/vite.config.js +++ b/playgrounds/sandbox/vite.config.js @@ -7,17 +7,7 @@ export default defineConfig({ minify: false }, - plugins: [ - inspect(), - svelte({ - compilerOptions: { - hmr: false, - experimental: { - async: true - } - } - }) - ], + plugins: [inspect(), svelte()], optimizeDeps: { // svelte is a local workspace package, optimizing it would require dev server restarts with --force for every change