Skip to content

Reduce frontend bundle size: analyze and split code using bundle analyzer #1159

@litlfred

Description

@litlfred

Feature Description

We are seeing build log warnings that the bundle size is significantly larger than recommended. Let's generate an actionable bundle report, identify major contributors to the payload, and implement a prioritized set of optimizations (code splitting, lazy loading, dependency audit, and bundle analyzer integration).

Use Case

Faster initial load time for the SGEX SPA, improved maintainability, and a clear process for ongoing bundle size monitoring. This directly supports REQ-PERF-001 and other performance requirements in /public/docs/requirements.md.

Alternatives Considered

Manual review of webpack/Cra stats, source-map-explorer, or basic dependency audit. But a bundle analyzer report provides much deeper insight and supports sustainable improvements.

Metadata

Metadata

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions