feat: specify optimizeDeps for vite

This commit is contained in:
Muspi Merol
2025-09-03 18:50:12 +08:00
parent c2b302f5c1
commit 84f1a59286

View File

@@ -7,4 +7,12 @@ export default defineConfig({
plugins: [Unocss(), sveltekit(), dir2json({ include: ["**/*.py", "**/*.j2", "**/pyproject.toml", "**/README.md"] })],
assetsInclude: ["src/python/**/*"],
server: { allowedHosts: true },
optimizeDeps: {
entries: [
"index.html",
"**/*.svelte",
"src/routes/**/*.ts",
"!**/*server.ts",
],
},
});