move compiler options to svelte.config.js, to remove red squigglies in editor

pull/16197/head
Rich Harris 7 months ago
parent a4540f8f2b
commit 366b59c194

@ -0,0 +1,9 @@
export default {
compilerOptions: {
hmr: false,
experimental: {
async: true
}
}
};

@ -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

Loading…
Cancel
Save