refactor(web): remove manual chunk splitting

Quentin Gliech and Claude Opus 4.6 (1M context) created

let rolldown handle chunk splitting automatically instead of
manually mapping vendor dependencies to named chunks

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

Change summary

webui2/vite.config.ts | 26 --------------------------
1 file changed, 26 deletions(-)

Detailed changes

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 },