mirror of https://github.com/sveltejs/svelte
24 lines
450 B
24 lines
450 B
1 year ago
|
import { defineConfig } from 'vite';
|
||
8 months ago
|
import inspect from 'vite-plugin-inspect';
|
||
1 year ago
|
import { svelte } from '@sveltejs/vite-plugin-svelte';
|
||
|
|
||
|
export default defineConfig({
|
||
8 months ago
|
build: {
|
||
|
minify: false
|
||
|
},
|
||
7 months ago
|
|
||
|
plugins: [
|
||
|
inspect(),
|
||
|
svelte({
|
||
|
compilerOptions: {
|
||
|
hmr: true
|
||
|
}
|
||
|
})
|
||
|
],
|
||
|
|
||
1 year ago
|
optimizeDeps: {
|
||
|
// svelte is a local workspace package, optimizing it would require dev server restarts with --force for every change
|
||
|
exclude: ['svelte']
|
||
|
}
|
||
1 year ago
|
});
|