Skip to content

High-performance browser automation bridge and multi-instance orchestrator with advanced stealth injection and real-time dashboard.

fix(dashboard): split vendor chunks with rolldown code-splitting groups (PIN-361)

Luigi Agostic500815a1150
diff --git a/dashboard/vite.config.ts b/dashboard/vite.config.ts
index 7a0119d0..9340e85a 100644
--- a/dashboard/vite.config.ts
+++ b/dashboard/vite.config.ts
@@ -76,15 +76,15 @@ export default defineConfig(() => {
},
build: {
outDir: "dist",
- rollupOptions: {
+ rolldownOptions: {
output: {
- manualChunks: {
- "vendor-ui": ["recharts"],
- "vendor-react": [
- "react",
- "react-dom",
- "react-router-dom",
- "zustand",
+ codeSplitting: {
+ groups: [
+ { name: "vendor-ui", test: /node_modules[\\/]recharts[\\/]/ },
+ {
+ name: "vendor-react",
+ test: /node_modules[\\/](react|react-dom|react-router|react-router-dom|zustand|scheduler)[\\/]/,
+ },
],
},
},