mirror of
https://github.com/sveltejs/svelte.git
synced 2024-11-25 09:09:35 +01:00
21 lines
449 B
JavaScript
21 lines
449 B
JavaScript
|
import { sveltekit } from '@sveltejs/kit/vite';
|
||
|
|
||
|
/** @type {import('vite').UserConfig} */
|
||
|
const config = {
|
||
|
plugins: [sveltekit()],
|
||
|
resolve: {
|
||
|
dedupe: ['@codemirror/state', '@codemirror/language', '@codemirror/view']
|
||
|
},
|
||
|
optimizeDeps: {
|
||
|
exclude: ['@sveltejs/site-kit', '@sveltejs/kit', 'svelte']
|
||
|
},
|
||
|
ssr: { noExternal: ['@sveltejs/site-kit', '@sveltejs/kit', 'svelte'] },
|
||
|
server: {
|
||
|
fs: {
|
||
|
strict: false
|
||
|
}
|
||
|
}
|
||
|
};
|
||
|
|
||
|
export default config;
|