chore: adjust manual chunks (#6368)

┆Issue is synchronized with this [Notion
page](https://www.notion.so/PR-6368-chore-adjust-manual-chunks-29b6d73d36508185a1bcdc77d4fd7519)
by [Unito](https://www.unito.io)
This commit is contained in:
Rizumu Ayaka
2025-10-29 17:44:26 +09:00
committed by GitHub
parent 9651d2a5df
commit 8c1beee719
2 changed files with 9 additions and 4 deletions

View File

@@ -43,7 +43,8 @@
"test:browser": "pnpm exec nx e2e", "test:browser": "pnpm exec nx e2e",
"test:unit": "nx run test", "test:unit": "nx run test",
"typecheck": "vue-tsc --noEmit", "typecheck": "vue-tsc --noEmit",
"zipdist": "node scripts/zipdist.js" "zipdist": "node scripts/zipdist.js",
"clean": "nx reset"
}, },
"devDependencies": { "devDependencies": {
"@eslint/js": "catalog:", "@eslint/js": "catalog:",

View File

@@ -209,7 +209,7 @@ export default defineConfig({
? [ ? [
visualizer({ visualizer({
filename: 'dist/stats.html', filename: 'dist/stats.html',
open: false, open: true,
gzipSize: true, gzipSize: true,
brotliSize: true, brotliSize: true,
template: 'treemap' // or 'sunburst', 'network' template: 'treemap' // or 'sunburst', 'network'
@@ -242,8 +242,12 @@ export default defineConfig({
return 'vendor-chart' return 'vendor-chart'
} }
if (id.includes('three') || id.includes('@xterm')) { if (id.includes('three')) {
return 'vendor-visualization' return 'vendor-three'
}
if (id.includes('@xterm')) {
return 'vendor-xterm'
} }
if (id.includes('/vue') || id.includes('pinia')) { if (id.includes('/vue') || id.includes('pinia')) {