Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

build(frontend): stop billing lazy index-named chunks to the entry bundle budget

rcourtman7dd34b289c80
diff --git a/frontend-modern/.bundlesize.json b/frontend-modern/.bundlesize.json
index 6868061247..1a8e7aa20b 100644
--- a/frontend-modern/.bundlesize.json
+++ b/frontend-modern/.bundlesize.json
@@ -1,106 +1,118 @@
{
"$comment": "Frontend bundle size baseline. Run 'npm run check:bundlesize' to validate. To update: run 'node scripts/check-bundle-size.mjs --update-baseline' after vite build.",
"version": 1,
- "generated": "2026-06-01",
+ "generated": "2026-06-11",
"defaultThresholdPercent": 15,
"chunks": {
- "index": {
- "baselineGzip": 111579
- },
"Alerts": {
- "baselineGzip": 93421
+ "baselineGzip": 93457
},
- "Settings": {
- "baselineGzip": 87026
+ "index": {
+ "baselineGzip": 92914
},
"sharedPlatformPage": {
- "baselineGzip": 78465
+ "baselineGzip": 82135
+ },
+ "Settings": {
+ "baselineGzip": 77260
},
"InfrastructureWorkspace": {
- "baselineGzip": 70975
+ "baselineGzip": 74074
},
"Proxmox": {
- "baselineGzip": 64966
+ "baselineGzip": 65241
+ },
+ "Chat": {
+ "baselineGzip": 63244
},
"WorkloadsSurface": {
- "baselineGzip": 53535
+ "baselineGzip": 53519
},
"AIIntelligence": {
- "baselineGzip": 51700
+ "baselineGzip": 51719
},
"vendor-ai": {
"baselineGzip": 20801
},
- "vendor-solid": {
- "baselineGzip": 17399
+ "Docker": {
+ "baselineGzip": 19206
},
"Standalone": {
- "baselineGzip": 16732
+ "baselineGzip": 17421
},
- "Docker": {
- "baselineGzip": 16271
+ "vendor-solid": {
+ "baselineGzip": 17399
},
"Kubernetes": {
- "baselineGzip": 14866
+ "baselineGzip": 15077
},
"TrueNAS": {
- "baselineGzip": 13965
+ "baselineGzip": 14223
},
"APIAccessPanel": {
- "baselineGzip": 10738
+ "baselineGzip": 10741
+ },
+ "vendor-icons": {
+ "baselineGzip": 10520
},
"vendor": {
"baselineGzip": 9853
},
- "vendor-icons": {
- "baselineGzip": 9611
+ "Vmware": {
+ "baselineGzip": 9026
},
"ReportingPanel": {
- "baselineGzip": 8988
+ "baselineGzip": 8989
},
"AuditLogPanel": {
- "baselineGzip": 8768
- },
- "Vmware": {
- "baselineGzip": 8752
+ "baselineGzip": 8767
},
"discovery": {
- "baselineGzip": 8385
+ "baselineGzip": 8386
+ },
+ "aiChat": {
+ "baselineGzip": 7629
},
"UpdatesSettingsPanel": {
- "baselineGzip": 7360
+ "baselineGzip": 7365
},
"FilterBar": {
- "baselineGzip": 6288
+ "baselineGzip": 6289
},
"AvailabilitySettingsPanel": {
- "baselineGzip": 6079
+ "baselineGzip": 6080
},
"SecurityAuthPanel": {
- "baselineGzip": 5952
+ "baselineGzip": 5956
},
"DiagnosticsPanel": {
- "baselineGzip": 5760
+ "baselineGzip": 5761
},
"HelpIcon": {
- "baselineGzip": 5577
+ "baselineGzip": 5622
},
"useUnifiedResources": {
- "baselineGzip": 5515
+ "baselineGzip": 5528
+ },
+ "SetupWizard": {
+ "baselineGzip": 5527
},
"ResourceChangeSummary": {
- "baselineGzip": 5499
+ "baselineGzip": 5501
},
"OrganizationSharingPanel": {
- "baselineGzip": 5444
+ "baselineGzip": 5440
+ },
+ "truenasPageModel": {
+ "baselineGzip": 5157
}
},
"totals": {
"js": {
- "baselineGzip": 950537
+ "baselineGzip": 1015839
},
"css": {
- "baselineGzip": 24914
+ "baselineGzip": 25744
}
}
}
diff --git a/frontend-modern/vite.config.ts b/frontend-modern/vite.config.ts
index 6045ce0f53..42956570e6 100644
--- a/frontend-modern/vite.config.ts
+++ b/frontend-modern/vite.config.ts
@@ -230,6 +230,17 @@ export default defineConfig({
target: 'esnext',
rollupOptions: {
output: {
+ // Dynamic-import facades named index.tsx/index.ts all produce chunks
+ // called "index", colliding with the real entry chunk in dist/assets
+ // and polluting the entry's bundle-size budget line. Name those
+ // chunks after the facade's directory instead (Chat, SetupWizard).
+ chunkFileNames(chunkInfo) {
+ if (chunkInfo.name === 'index' && chunkInfo.facadeModuleId) {
+ const dir = chunkInfo.facadeModuleId.split('/').slice(-2, -1)[0];
+ if (dir) return `assets/${dir}-[hash].js`;
+ }
+ return 'assets/[name]-[hash].js';
+ },
manualChunks(id) {
if (id.includes('node_modules')) {
if (id.includes('solid-js') || id.includes('@solidjs/router')) return 'vendor-solid';