mirror of
https://github.com/sveltejs/svelte.git
synced 2024-12-01 01:11:24 +01:00
5619cd9bfc
* chore: update playgrounds/demo to exclude svelte from being optimized and generate an App.svelte so first run doesn't throw * chore: fix format
11 lines
311 B
JavaScript
11 lines
311 B
JavaScript
import { defineConfig } from 'vite';
|
|
import { svelte } from '@sveltejs/vite-plugin-svelte';
|
|
|
|
export default defineConfig({
|
|
plugins: [svelte()],
|
|
optimizeDeps: {
|
|
// svelte is a local workspace package, optimizing it would require dev server restarts with --force for every change
|
|
exclude: ['svelte']
|
|
}
|
|
});
|