From 7c8be602be7c179a7f248aea078448413815e70a Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Mon, 30 Jun 2025 11:49:51 -0400 Subject: [PATCH] move config into svelte.config.js (#16265) --- playgrounds/sandbox/svelte.config.js | 5 +++++ playgrounds/sandbox/vite.config.js | 9 +-------- 2 files changed, 6 insertions(+), 8 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..65f739bdb6 --- /dev/null +++ b/playgrounds/sandbox/svelte.config.js @@ -0,0 +1,5 @@ +export default { + compilerOptions: { + hmr: true + } +}; diff --git a/playgrounds/sandbox/vite.config.js b/playgrounds/sandbox/vite.config.js index 51bfd0a212..5ce0204217 100644 --- a/playgrounds/sandbox/vite.config.js +++ b/playgrounds/sandbox/vite.config.js @@ -7,14 +7,7 @@ export default defineConfig({ minify: false }, - plugins: [ - inspect(), - svelte({ - compilerOptions: { - hmr: true - } - }) - ], + plugins: [inspect(), svelte()], optimizeDeps: { // svelte is a local workspace package, optimizing it would require dev server restarts with --force for every change