Skip to content

Commit 8c1beee

Browse files
authored
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)
1 parent 9651d2a commit 8c1beee

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@
4343
"test:browser": "pnpm exec nx e2e",
4444
"test:unit": "nx run test",
4545
"typecheck": "vue-tsc --noEmit",
46-
"zipdist": "node scripts/zipdist.js"
46+
"zipdist": "node scripts/zipdist.js",
47+
"clean": "nx reset"
4748
},
4849
"devDependencies": {
4950
"@eslint/js": "catalog:",

vite.config.mts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ export default defineConfig({
209209
? [
210210
visualizer({
211211
filename: 'dist/stats.html',
212-
open: false,
212+
open: true,
213213
gzipSize: true,
214214
brotliSize: true,
215215
template: 'treemap' // or 'sunburst', 'network'
@@ -242,8 +242,12 @@ export default defineConfig({
242242
return 'vendor-chart'
243243
}
244244

245-
if (id.includes('three') || id.includes('@xterm')) {
246-
return 'vendor-visualization'
245+
if (id.includes('three')) {
246+
return 'vendor-three'
247+
}
248+
249+
if (id.includes('@xterm')) {
250+
return 'vendor-xterm'
247251
}
248252

249253
if (id.includes('/vue') || id.includes('pinia')) {

0 commit comments

Comments
 (0)