Skip to content

chore(website): re-measure the all i18n chunk ceiling - #11406

Closed
DcXiaoBing wants to merge 1 commit into
kirodotdev:mainfrom
DcXiaoBing:chore/bundle-all-ceiling
Closed

DcXiaoBing wants to merge 1 commit into
kirodotdev:mainfrom
DcXiaoBing:chore/bundle-all-ceiling

Conversation

@DcXiaoBing

Copy link
Copy Markdown
Contributor

Problem / Motivation

Bundle Size Gate fails on every frontend PR: the all i18n chunk built from main alone is 7 KB over its 11620 KB ceiling.

Why it matters

Any PR touching website/ goes red on a gate its diff did not trip, and each author re-discovers the same measurement.

What changed (motivation → approach → change)

main @ 26ca085 builds assets/all-*.js at 11,906,099 B (11627 KB). The growth is translated product copy from the docx office preview (#10746, 13 catalogs); the chunk still holds the same 14 modules and no library reached it, so there is nothing to split. Per the file's convention, the all entry in website/scripts/check-bundle-size.mjs moves to 12210 KB (5% headroom over the measurement) with the re-measurement recorded in its comment.

Reproduce: cd website && npm ci && npm run build && node scripts/check-bundle-size.mjs on main.

Tests

N/A — one budget constant; src/test/checkBundleSize.test.ts (16 tests) passes unchanged.

Manual verification

node scripts/check-bundle-size.mjs on a main build: before FAIL assets/all-DoFIOMo-.js: 11.35 MB exceeds its 11.35 MB budget by 7.0 KB; after 696 chunks within budget.

Related Issues

no linked issue: unblocks #11398 and every other open frontend PR; no tracking issue exists for the recurring ceiling drift.

Checklist

  • At most two commits (one is the norm), with a Conventional Commits title (feat|fix|docs|refactor|perf|test|chore|ci|build|revert: ...)
  • Existing tests pass and new tests added for new functionality
  • Self-review completed; code follows project style guidelines
  • Documentation updated (if applicable)
  • No secrets, credentials, or internal references in the diff

main @ 26ca085 builds the all chunk at 11,906,099 B (11627 KB), 7 KB over
the 11620 KB ceiling, so Bundle Size Gate fails for every frontend PR. Raise
the ceiling to 12210 KB, 5% headroom over the measurement, per the file's
convention.
@DcXiaoBing
DcXiaoBing requested review from a team and krishdhasmana September 17, 2026 00:13
@github-actions github-actions Bot added fork Pull request from a fork (external contributor) readiness: checking Automated validation is still running merge conflict Branch has merge conflicts with its base — author must resolve before merge labels Sep 17, 2026
@DcXiaoBing

Copy link
Copy Markdown
Contributor Author

Superseded: main @ 63fc20e (#10521) already raised the all ceiling to 12240 KB, so this bump is no longer needed.

@DcXiaoBing DcXiaoBing closed this Sep 17, 2026
@github-actions github-actions Bot removed the readiness: checking Automated validation is still running label Sep 17, 2026
@DcXiaoBing
DcXiaoBing deleted the chore/bundle-all-ceiling branch September 17, 2026 01:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fork Pull request from a fork (external contributor) merge conflict Branch has merge conflicts with its base — author must resolve before merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant