mirror of
https://github.com/sveltejs/svelte.git
synced 2024-11-24 00:07:30 +01:00
24 lines
450 B
JavaScript
24 lines
450 B
JavaScript
import { defineConfig } from 'vite';
|
|
import inspect from 'vite-plugin-inspect';
|
|
import { svelte } from '@sveltejs/vite-plugin-svelte';
|
|
|
|
export default defineConfig({
|
|
build: {
|
|
minify: false
|
|
},
|
|
|
|
plugins: [
|
|
inspect(),
|
|
svelte({
|
|
compilerOptions: {
|
|
hmr: true
|
|
}
|
|
})
|
|
],
|
|
|
|
optimizeDeps: {
|
|
// svelte is a local workspace package, optimizing it would require dev server restarts with --force for every change
|
|
exclude: ['svelte']
|
|
}
|
|
});
|