Files
freno-dev/app.config.ts
Michael Freno 629b4f01c7 i swear
2025-12-19 16:39:18 -05:00

40 lines
1.1 KiB
TypeScript

import { defineConfig } from "@solidjs/start/config";
import tailwindcss from "@tailwindcss/vite";
export default defineConfig({
vite: {
plugins: [tailwindcss()],
build: {
rollupOptions: {
output: {
manualChunks: (id) => {
// Split highlight.js into its own chunk
if (id.includes("highlight.js")) {
return "highlight";
}
// Split other large vendor libraries
if (id.includes("node_modules")) {
// Keep all solid-related packages together to avoid circular deps
if (
id.includes("@solidjs") ||
id.includes("solid-js") ||
id.includes("seroval")
) {
return "solid";
}
if (id.includes("@trpc")) {
return "trpc";
}
// Don't create a generic vendor chunk - let Vite handle it
// to avoid circular dependencies with solid
}
}
}
}
}
},
server: {
preset: "vercel"
}
});