fix(ci): report lazy bundle chunks separately#1710
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
✅ Deploy Preview for vjs10-site ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Contributor
📦 Bundle Size Report🎨 @videojs/html — no changesPresets (7)
Media (10)
Players (5)
Skins (30)
UI Components (38)
Sizes are marginal over the root entry point. ⚛️ @videojs/react — no changesPresets (7)
Media (9)
Skins (27)
UI Components (32)
Sizes are marginal over the root entry point. 🧩 @videojs/core — no changesEntries (14)
🏷️ @videojs/element — no changesEntries (2)
📦 @videojs/store — no changesEntries (3)
🔧 @videojs/utils — no changesEntries (10)
📦 @videojs/spf — no changesEntries (4)
ℹ️ How to interpretJS sizes are initial static graph totals (minified + brotli). Lazy dynamic chunks are shown separately when present.
Run |
5348ffa to
4c2206d
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 4c2206d. Configure here.
mihar-22
approved these changes
Jun 19, 2026
Co-authored-by: Sam Potts <sam@potts.es>
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.

Summary
Update the bundle size report so JavaScript entries compare initial static graph size while lazy dynamic chunks are shown separately. This keeps lazy locale chunks visible without making every entry look like it eagerly grew by the full lazy bundle cost.
Changes
Testing
pnpm build:packagesnode .github/scripts/bundle-size.js --json /tmp/v10-main-size.jsonnode .github/scripts/bundle-size-report.js --pr /tmp/v10-fixture-size.json --base /tmp/v10-fixture-base-size.jsonnode --check .github/scripts/bundle-size.jsnode --check .github/scripts/bundle-size-report.jsgit diff --checkNote:
pnpm exec biome check .github/scripts/bundle-size.js .github/scripts/bundle-size-report.js .github/workflows/bundle-size.ymlprocesses zero files because these paths are ignored by the repo Biome config.Note
Low Risk
Changes are limited to GitHub Actions bundle-size scripts and workflow; no runtime library or app behavior is modified.
Overview
Bundle size CI now treats initial (static esbuild graph) and lazy (dynamic chunks) as separate metrics so locale-style lazy loads stay visible without inflating eager entry diffs.
bundle-size.jsenables esbuild splitting and walks the metafile to sum brotli sizes for static outputs vs everything else, emitting optionallazySize,totalSize, and related fields (including standalone lazy for UI gating). It also accepts--rootso measurements can run against a chosen checkout.bundle-size-report.jsrenames columns to Initial / Lazy, compares PR vs base on initial size (with standalone gating for UI), surfaces lazy deltas, and flags changes when either initial or lazy moves by more than 300 B.The base-size workflow job checks out the PR’s size scripts into
.bundle-size-prand runs that script with--root .on the base branch build so baseline and PR use the same measurement logic.Reviewed by Cursor Bugbot for commit a82aa86. Bugbot is set up for automated code reviews on this repo. Configure here.