Skip to content

Add a bundle-size budget with size-limit#140

Merged
i-afaqrashid merged 1 commit into
mainfrom
issue-136-size-limit
May 29, 2026
Merged

Add a bundle-size budget with size-limit#140
i-afaqrashid merged 1 commit into
mainfrom
issue-136-size-limit

Conversation

@i-afaqrashid
Copy link
Copy Markdown
Owner

Summary

Adds size-limit budgets for the three published bundles and wires pnpm size into verify after the build, so size regressions fail the build. Dependency and lockfile are committed together.

How verified

  • pnpm size passes: core 2.47 kB (limit 3.5), react 6.89 kB (limit 9), react/server 394 B (limit 1 kB) — minified + brotli.
  • Limits set above current sizes with headroom.

Closes #136

@vercel
Copy link
Copy Markdown

vercel Bot commented May 29, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
webaudio-kit-site Ready Ready Preview, Comment May 29, 2026 9:07am

@socket-security
Copy link
Copy Markdown

socket-security Bot commented May 29, 2026

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Added@​size-limit/​preset-small-lib@​12.1.0991005284100
Addedsize-limit@​12.1.01001008084100

View full report

Adds size-limit budgets for the published bundles and wires the check
into verify after the build. Limits sit above current brotli sizes with
headroom (core 3.5 kB vs 2.47 kB, react 9 kB vs 6.89 kB, server 1 kB vs
394 B), so accidental size regressions fail the build.

Closes #136
@i-afaqrashid i-afaqrashid force-pushed the issue-136-size-limit branch from b8649b0 to e2960f9 Compare May 29, 2026 09:06
@i-afaqrashid i-afaqrashid merged commit d56ab87 into main May 29, 2026
12 checks passed
@i-afaqrashid i-afaqrashid deleted the issue-136-size-limit branch May 29, 2026 09:09
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.

Add a bundle-size budget with size-limit

1 participant