You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svelte/sites/svelte-5-preview/vite.config.js

21 lines
449 B

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;