From f78f050c30b54ae9be5b6b31224882d1e14628d4 Mon Sep 17 00:00:00 2001 From: Quentin Gliech Date: Sun, 29 Mar 2026 19:10:24 +0200 Subject: [PATCH] refactor(web): remove manual chunk splitting let rolldown handle chunk splitting automatically instead of manually mapping vendor dependencies to named chunks Co-Authored-By: Claude Opus 4.6 (1M context) --- webui2/vite.config.ts | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/webui2/vite.config.ts b/webui2/vite.config.ts index 82a55976c5fef221cb9e658a6cdab5b6bc545bbf..f486037411a72696c0d2cf9b81e670f1e8233273 100644 --- a/webui2/vite.config.ts +++ b/webui2/vite.config.ts @@ -13,32 +13,6 @@ export default defineConfig({ "@": path.resolve(__dirname, "./src"), }, }, - build: { - // highlight.js is inherently large (~1MB) but lazy-loaded; silence the warning. - chunkSizeWarningLimit: 1100, - rolldownOptions: { - output: { - manualChunks(id) { - if ( - id.includes("react-dom") || - id.includes("react-router-dom") || - id.includes("/react/") - ) { - return "vendor-react"; - } - if (id.includes("@apollo/client") || id.includes("/graphql/")) { - return "vendor-apollo"; - } - if (id.includes("react-markdown") || id.includes("remark-gfm")) { - return "vendor-markdown"; - } - if (id.includes("highlight.js")) { - return "vendor-highlight"; - } - }, - }, - }, - }, server: { proxy: { "/graphql": { target: API_URL, changeOrigin: true },