Optimize bundle size — main chunk is 2.3MB / 675KB gzipped #3
Labels
No labels
blocked:needs-attention
blocked:needs-decision
blocked:needs-decompose
blocked:needs-design
blocked:needs-triage
blocked:unclassified
bug
documentation
enhancement
gsd-spec
in-progress
needs-decompose
priority:high
priority:low
priority:medium
quickfix
test
triage-approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Mark/kimi_agent_openscad_parametric_gui#3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The production build produces a single
index-*.jschunk:This exceeds the 500 KB warning threshold by ~5×. Three.js, drei, fiber, and framer-motion are the obvious culprits, and
Home.tsxis the only file that needs them — the workbench pages don't.A second issue:
jszipis both statically and dynamically imported across 3 files; Vite can't split it into its own chunk.Approach:
Workspace.tsx,Libraries.tsx).jszipinsrc/lib/libraries.ts(drop theimport()) so it gets deduped into one chunk.build.rollupOptions.output.manualChunksinvite.config.tsto splitthree,framer-motion, and@radix-ui/*into vendor chunks.npx update-browserslist-db@latest(currently 8 months stale, which the build itself warns about).Acceptance:
Labels: enhancement