Skip to content

Restore a production bundle size budget in the console build (migration React) #47

Description

@ibrahim-l

Problem Statement

The Angular build enforced size budgets (initial bundle: warn 1 MB / error 2 MB, component styles: 10/20 KB) and failed the production build when exceeded. The Vite build on main ("tsc -b && vite build") has no size check at all, so bundle bloat ships unnoticed.

Proposed Solution

Add a bundle size check to the build (e.g. a small script run after vite build, or a size-limit tool) that fails or warns when the entry bundle or total JS exceeds a defined budget.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions