Skip to content

Budget Web bundle bytes per source package - #953

Draft
kiftio wants to merge 1 commit into
dk/web-bundle-package-sizesfrom
dk/web-package-bundle-budgets
Draft

kiftio wants to merge 1 commit into
dk/web-bundle-package-sizesfrom
dk/web-package-bundle-budgets

Conversation

@kiftio

@kiftio kiftio commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

What changes are you making?

Adds per-package soft/hard budgets for the code each package contributes to the shipped Web JavaScript, using the bundlePackage measurement from #952. Values are minified, uncompressed bytes:

Package Now Soft Hard Reasoning
@shopify/checkout-kit 15.9 KiB 18 KiB 24 KiB Grows about 1 KiB per feature (+2.2 KB across #791, #868, #835), so this allows a couple of features before review
@shopify/checkout-kit-protocol 14.3 KiB 16 KiB 20 KiB Mostly generated code; flat since #862. Jumps with UCP schema adoption
@shopify/checkout-kit-telemetry 4.2 KiB 5 KiB 8 KiB Small and flat; any growth deserves a look

The total Web JavaScript budget (40 / 50 KiB, set in #952) still applies. Bundler glue (about 830 B) counts only toward the total.

Note

Size budgets fails on this PR until #952 is on main, because the default branch's policy does not yet know bundlePackage. Merge #952 first, then re-run Package Size here.

How to test

@kiftio
kiftio added this pull request to stack #945 October 8, 2026 13:26
@github-actions github-actions Bot added the #gsd:50662 Rebase Checkout Kit on UCP label Oct 8, 2026
@kiftio
kiftio force-pushed the dk/web-package-bundle-budgets branch 2 times, most recently from 1c98f27 to 73ed8b4 Compare October 8, 2026 14:23
@kiftio
kiftio removed this pull request from stack #945 October 8, 2026 14:29
@kiftio
kiftio added this pull request to stack #959 October 8, 2026 14:29
@kiftio
kiftio force-pushed the dk/web-package-bundle-budgets branch from 73ed8b4 to 37ddb1c Compare October 8, 2026 15:02
@kiftio
kiftio force-pushed the dk/web-package-bundle-budgets branch 2 times, most recently from d62ce74 to 61b214f Compare October 8, 2026 16:22
Add soft/hard budgets for the code each package contributes to the shipped
Web JavaScript, measured with `bundlePackage`:

- @shopify/checkout-kit: 18 / 24 KiB (currently 15.9 KiB)
- @shopify/checkout-kit-protocol: 16 / 20 KiB (currently 14.3 KiB)
- @shopify/checkout-kit-telemetry: 5 / 8 KiB (currently 4.2 KiB)

Requires the `bundlePackage` measurement on the default branch; until then
Size budgets rejects this budget file.
@kiftio
kiftio force-pushed the dk/web-package-bundle-budgets branch from 61b214f to 25648f4 Compare October 8, 2026 19:25

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

#gsd:50662 Rebase Checkout Kit on UCP

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant