Repository navigation
chore(website): re-measure the all i18n chunk ceiling - #11406
Closed
DcXiaoBing wants to merge 1 commit into
Closed
DcXiaoBing wants to merge 1 commit into
DcXiaoBing wants to merge 1 commit into
Conversation
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.
5 tasks done
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem / Motivation
Bundle Size Gatefails on every frontend PR: thealli18n 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-*.jsat 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, theallentry inwebsite/scripts/check-bundle-size.mjsmoves 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.mjson main.Tests
N/A — one budget constant;
src/test/checkBundleSize.test.ts(16 tests) passes unchanged.Manual verification
node scripts/check-bundle-size.mjson a main build: beforeFAIL assets/all-DoFIOMo-.js: 11.35 MB exceeds its 11.35 MB budget by 7.0 KB; after696 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
feat|fix|docs|refactor|perf|test|chore|ci|build|revert: ...)