diff --git a/vite.config.ts b/vite.config.ts index 01df1dad..8a1df641 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -6,5 +6,18 @@ export default defineConfig({ plugins: [ tailwindcss(), sveltekit() // <-- Must come after Tailwind - ] + ], + build: { + rollupOptions: { + output: { + // Keep all svelte internals in one chunk to prevent circular + // dependency warnings between runtime.js and index-client.js + manualChunks(id) { + if (id.includes('/node_modules/svelte/')) { + return 'svelte-vendor'; + } + } + } + } + } });