From 602b6899dabf6d7466bc6324e4daceb53a7c8cc0 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 12 Mar 2026 17:10:57 +0000 Subject: [PATCH 1/2] Initial plan From 0620df1fdc40e75dd7062df69cc0c088d4e8df54 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 12 Mar 2026 17:14:47 +0000 Subject: [PATCH 2/2] fix(vite): convert manualChunks from Object to Function for Vite 8 compatibility Co-authored-by: pethers <1726836+pethers@users.noreply.github.com> --- vite.config.js | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/vite.config.js b/vite.config.js index 2267c46799..4631d9c6c2 100644 --- a/vite.config.js +++ b/vite.config.js @@ -141,11 +141,16 @@ export default defineConfig({ }, output: { // Manual chunk splitting for optimal loading - manualChunks: { - // Core visualization libraries - 'chart': ['chart.js', 'chartjs-plugin-annotation'], - 'd3': ['d3'], - 'papa': ['papaparse'] + manualChunks(id) { + if (id.includes('chart.js') || id.includes('chartjs-plugin-annotation')) { + return 'chart'; + } + if (id.includes('/node_modules/d3') || id.includes('/node_modules/d3-')) { + return 'd3'; + } + if (id.includes('papaparse')) { + return 'papa'; + } }, // Asset file naming