Build: Add bundle-size bot#263
Merged
Merged
Conversation
Reports shipped bundle size changes on PRs as one Semantic Bundle Bot comment, the size sister to the performance bot. Builds the PR head and merge base, weighs every shipped bundle in brotli/gzip/raw, and counts lines of code shipped with comments stripped.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Headline is the component bundle's own delta (no cross-bundle sum, which double-counts overlapping bundles). Five states (no-change/improvement/mixed/warning/regression) keyed on the worst single bundle, with JND suppression and an absolute floor on percent-driven regressions. Columns lead with brotli size and percent change.
Packages consumed piecemeal (utils) have a whole-package bundle that's an upper bound, not a per-consumer cost — a new export tree-shakes to zero for real consumers, and its real cost already shows in the component bundle. Such packages are still measured and shown (marked) but don't drive severity. Opt-out via TREE_SHAKEN, so future packages count as real shipped bundles by default.
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.
This adds a bot that reports on bundle size on PRs
Details
packages/**orsrc/**,@semantic-ui/componentbut reporting per packageRisk
0/10 — CI tooling only, no published framework code touched.