Skip to content

Use Size Limit for bundle budgets - #580

Merged
leopiccionia merged 5 commits into
InfoAmazonia:developfrom
bwstefano:codex/size-limit-bundle-budget
Jun 2, 2026
Merged

Use Size Limit for bundle budgets#580
leopiccionia merged 5 commits into
InfoAmazonia:developfrom
bwstefano:codex/size-limit-bundle-budget

Conversation

@bwstefano

@bwstefano bwstefano commented May 21, 2026

Copy link
Copy Markdown
Member

Summary

This PR replaces the custom bundle-size script with Size Limit while preserving the existing npm run build:report command.

Changes

  • Adds size-limit and @size-limit/file as versioned dev dependencies.
  • Adds .size-limit.json with explicit budgets for the built JavaScript entrypoints.
  • Configures Size Limit to measure uncompressed built files, matching the previous custom script's intent.
  • Points npm run build:report at size-limit.
  • Removes scripts/report-bundle-sizes.mjs.
  • Updates the README to describe Size Limit as the bundle budget owner.

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-budget
  • Temporary full integration test through Restructure documentation site publishing #583 completed without merge conflicts using this branch.
  • GitHub Actions should validate build and bundle budgets through npm run build:report.

@bwstefano bwstefano added this to the 3.0 milestone May 21, 2026
@bwstefano
bwstefano force-pushed the codex/size-limit-bundle-budget branch from ea21d82 to 693fe82 Compare May 21, 2026 18:13
bwstefano and others added 2 commits May 21, 2026 15:53
Co-authored-by: Codex <codex@openai.com>
Co-authored-by: Codex <codex@openai.com>
@bwstefano
bwstefano force-pushed the codex/size-limit-bundle-budget branch from 693fe82 to 9735629 Compare May 21, 2026 18:55
bwstefano added 2 commits May 21, 2026 17:02
…node-runtime

# Conflicts:
#	docs/dev/dependency-upgrade-smoke-tests.md
@leopiccionia
leopiccionia marked this pull request as ready for review June 2, 2026 18:54
@leopiccionia
leopiccionia merged commit 7d3aeaf into InfoAmazonia:develop Jun 2, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants