Use Size Limit for bundle budgets - #580
Merged
leopiccionia merged 5 commits intoJun 2, 2026
Merged
Conversation
bwstefano
force-pushed
the
codex/size-limit-bundle-budget
branch
from
May 21, 2026 18:13
ea21d82 to
693fe82
Compare
Co-authored-by: Codex <codex@openai.com>
Co-authored-by: Codex <codex@openai.com>
bwstefano
force-pushed
the
codex/size-limit-bundle-budget
branch
from
May 21, 2026 18:55
693fe82 to
9735629
Compare
…node-runtime # Conflicts: # docs/dev/dependency-upgrade-smoke-tests.md
…ndle-budget # Conflicts: # README.md
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
This PR replaces the custom bundle-size script with Size Limit while preserving the existing
npm run build:reportcommand.Changes
size-limitand@size-limit/fileas versioned dev dependencies..size-limit.jsonwith explicit budgets for the built JavaScript entrypoints.npm run build:reportatsize-limit.scripts/report-bundle-sizes.mjs.Dependency
This PR should be merged after #578. The branch intentionally includes the resolved #578 history so the README keeps npm-native Node runtime enforcement and Size Limit bundle-budget enforcement together without a manual conflict.
Once the earlier PRs are merged into
develop, this PR can be updated/rebased and its visible diff should collapse back to the Size Limit changes.Validation
git diff --check upstream/develop..codex/size-limit-bundle-budgetnpm run build:report.