Skip to content

Build: Add bundle-size bot#263

Merged
jlukic merged 5 commits into
mainfrom
feat/bundle-size-bot
Jun 25, 2026
Merged

Build: Add bundle-size bot#263
jlukic merged 5 commits into
mainfrom
feat/bundle-size-bot

Conversation

@jlukic

@jlukic jlukic commented Jun 25, 2026

Copy link
Copy Markdown
Member

This adds a bot that reports on bundle size on PRs

Details

  • Applies only on PRs touching packages/** or src/**,
  • Performance report is primarily based off shipped bundle for using a component @semantic-ui/component but reporting per package
  • Shows numbers with compression (Brotli) as headline as well as gzip etc
  • Shows LOC and Comment LOCe workspace, so new packages and primitives are picked up with no edit

Risk

0/10 — CI tooling only, no published framework code touched.

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.
@vercel

vercel Bot commented Jun 25, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
semantic-next Ready Ready Preview, Comment Jun 25, 2026 11:42pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
mcp Ignored Ignored Preview Jun 25, 2026 11:42pm

Request Review

@github-actions github-actions Bot added CI modifies continuous integration Docs Modifies documentation labels Jun 25, 2026
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.
@jlukic jlukic merged commit a0132b8 into main Jun 25, 2026
12 of 13 checks passed
@jlukic jlukic deleted the feat/bundle-size-bot branch June 25, 2026 23:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI modifies continuous integration Docs Modifies documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant