mirror of
https://github.com/sveltejs/svelte.git
synced 2024-11-25 09:09:35 +01:00
fe8a9ce31d
Co-authored-by: Rich Harris <rich.harris@vercel.com> Co-authored-by: Simon Holthausen <simon.holthausen@vercel.com> Co-authored-by: Dominic Gannaway <dg@domgan.com>
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;
|