Skip to content

[codex] Lazy load feature modules#36

Merged
panghim merged 1 commit into
mainfrom
codex/lazy-load-feature-modules
Jun 26, 2026
Merged

[codex] Lazy load feature modules#36
panghim merged 1 commit into
mainfrom
codex/lazy-load-feature-modules

Conversation

@panghim

@panghim panghim commented Jun 16, 2026

Copy link
Copy Markdown
Owner

Summary

  • lazy-load major feature modules from App.tsx with React.lazy and Suspense
  • add a lightweight module loading placeholder
  • update the collaboration queue and maintenance log for the 2026-06-16 maintenance pass

Impact

This keeps the app shell smaller and turns feature screens into async chunks. It directly addresses the current bundle-size/code-splitting maintenance track.

Evidence

Before this change, npm run build produced one entry chunk:

  • dist/assets/index-CjRptPdA.js: 1,242.11 kB / gzip 322.44 kB
  • Vite emitted the Some chunks are larger than 500 kB warning

After this change, npm run check produced:

  • dist/assets/index-vB2h1zPc.js: 220.24 kB / gzip 70.02 kB
  • feature-specific async chunks for Dashboard, InvoiceManager, TaxDeclaration, CrossBorderHub, OpenPlatform and other modules
  • no Vite chunk-size warning
  • 25 Vitest tests passed

Checks

  • npm run check

Closes #26.
Related #29.

@panghim panghim merged commit d4582d9 into main Jun 26, 2026
1 check passed
@panghim panghim deleted the codex/lazy-load-feature-modules branch June 26, 2026 10:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TAI-013: Track bundle size and add code splitting

1 participant