0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-11-25 09:09:35 +01:00
svelte/sites/svelte-5-preview/vite.config.js

21 lines
449 B
JavaScript
Raw Normal View History

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;