Skip to content

tools: bundle size diff CLI - #3350

Merged
david-crespo merged 3 commits into
mainfrom
bundle-size-cli
Aug 24, 2026
Merged

tools: bundle size diff CLI#3350
david-crespo merged 3 commits into
mainfrom
bundle-size-cli

Conversation

@david-crespo

@david-crespo david-crespo commented Aug 24, 2026

Copy link
Copy Markdown
Collaborator

No big deal, just something to check the effect of a given PR on the bundled output. Uses fzf for the PR picker and delta for a nice diff.

Like api-diff, you can specify either a PR number (in this case a console PR rather than an omicron PR) or a base and a head rev. There are some heuristics in place to reduce diff noise: we have to replace the hashes in the filenames with placeholders and we ignore file size changes under 0.05 KB. We also sort the files by name rather than size (which Vite does by default) to avoid spurious changes in order due to files changing size slightly.

image image
2026-08-24-bundle-size-diff.mp4

@vercel

vercel Bot commented Aug 24, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
console Ready Ready Preview Aug 24, 2026 10:34pm

Request Review

@david-crespo

Copy link
Copy Markdown
Collaborator Author

Not even a flake but some new horror.

image

@david-crespo
david-crespo merged commit d44615b into main Aug 24, 2026
11 of 12 checks passed
@david-crespo
david-crespo deleted the bundle-size-cli branch August 24, 2026 23: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.

1 participant