From 8c1beee719389f3c3577001d19097f5f73699376 Mon Sep 17 00:00:00 2001 From: Rizumu Ayaka Date: Wed, 29 Oct 2025 17:44:26 +0900 Subject: [PATCH] chore: adjust manual chunks (#6368) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-6368-chore-adjust-manual-chunks-29b6d73d36508185a1bcdc77d4fd7519) by [Unito](https://www.unito.io) --- package.json | 3 ++- vite.config.mts | 10 +++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 620bb9bbb..6c82e43b5 100644 --- a/package.json +++ b/package.json @@ -43,7 +43,8 @@ "test:browser": "pnpm exec nx e2e", "test:unit": "nx run test", "typecheck": "vue-tsc --noEmit", - "zipdist": "node scripts/zipdist.js" + "zipdist": "node scripts/zipdist.js", + "clean": "nx reset" }, "devDependencies": { "@eslint/js": "catalog:", diff --git a/vite.config.mts b/vite.config.mts index b2424dc43..96f101256 100644 --- a/vite.config.mts +++ b/vite.config.mts @@ -209,7 +209,7 @@ export default defineConfig({ ? [ visualizer({ filename: 'dist/stats.html', - open: false, + open: true, gzipSize: true, brotliSize: true, template: 'treemap' // or 'sunburst', 'network' @@ -242,8 +242,12 @@ export default defineConfig({ return 'vendor-chart' } - if (id.includes('three') || id.includes('@xterm')) { - return 'vendor-visualization' + if (id.includes('three')) { + return 'vendor-three' + } + + if (id.includes('@xterm')) { + return 'vendor-xterm' } if (id.includes('/vue') || id.includes('pinia')) {