Repository navigation
Studio: raise the startup bundle budget by the Trick or treat row's growth - #15822
Merged
Merged
Conversation
…rowth Frontend build + bundle sanity fails on main: transfer 1806.0 KB > 1795.7 KB. #15678 merged without re-measuring and added 29,984 B raw / 10,952 B transfer to the eager startup JS (its color themes are read by the theme store at startup); #15485's raise was measured against a base before it, so main has been over since. Raised by #15678's measured growth.
Member
Author
|
@codex review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. Can't wait for the next one! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
This was referenced Oct 28, 2026
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.
Summary
Frontend build + bundle sanityfails on main (seen on #15806, #15799, #15798, #15795; reproduces locally on556b28bb40):Building every frontend commit since the last budget base (
8222149ee) and measuring the eager set the same wayscripts/check-bundle-budget.tsdoes:ed9857c0c3(#15718)39b8a6ce13(#15678, Trick or treat row)556b28bb40(main)Every other step in the range moves by 0.0 to 0.5 KB. #15678 added 29,984 B raw / 10,952 B transfer in one step and merged without re-measuring. #15485 then raised the budget by its own 1,953 B, but measured against
8222149ee, a base from before #15678, so main has been over ever since.Change
BUDGETinstudio/frontend/scripts/check-bundle-budget.tsis raised by #15678's measured growth (+29,984 B raw, +10,952 B transfer), with the measurement recorded next to the earlier raises. Main is then within budget with 0.5 KB transfer / 11.3 KB raw to spare, so the next unmeasured growth still fails here.I tried the gate's first suggestion before raising it. Loading the Trick or treat dialog on first open (
React.lazyinapp-sidebar.tsx) saves only 10.4 KB raw / 3.0 KB transfer, and it raises the startup set from 85 to 90 chunks: the case the script warns about, where a dynamic import splits shared modules into extra startup chunks. The rest of #15678's weight is its Halloween color themes infeatures/settings/lib/color-themes.ts, which the theme store reads at startup to apply the saved theme. So that is not a laziness fix, and I left it out.Testing
npm run build && npm run bundle:check: over on main,within budget (0.5 KB transfer, 11.3 KB raw to spare)with this change.tests/bundle-budget-cli.test.ts,tests/bundle-budget-closure.test.ts: 43 passed.