Optimize bundle size — main chunk is 909KB #2
Labels
No labels
blocked:depends-p1
blocked:gate-research
blocked:lint-failed
blocked:needs-decision
blocked:needs-human
blocked:verify-failed
bug
data-loss
documentation
enhancement
feature-request
in-progress
needs-decompose
needs-triage
pwa
quickfix
security
security/high
security/medium
test
test-coverage
triage-approved
vault
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Mark/kimi_agent_kin_app_sync#2
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 outputs a single
index.jschunk of ~909KB (262KB gzipped). This exceeds the 500KB warning threshold and will impact mobile load times.Suggested approaches:
import()for page components (Home, People, Dates, Settings, LogInteraction, PersonDetail)build.rollupOptions.output.manualChunksinvite.config.tsto split vendor libraries (react, framer-motion, recharts, date-fns)Target: get initial chunk under 200KB gzipped.
File to modify:
vite.config.tsFixed in commit. Closing.