diff --git a/.ci/bundle-size-budgets.json b/.ci/bundle-size-budgets.json index e5138d363..c898c380c 100644 --- a/.ci/bundle-size-budgets.json +++ b/.ci/bundle-size-budgets.json @@ -4,6 +4,24 @@ "measurement": "bundle", "softKiB": 40, "hardKiB": 50 + }, + "checkoutKit": { + "measurement": "bundlePackage", + "package": "@shopify/checkout-kit", + "softKiB": 18, + "hardKiB": 24 + }, + "protocol": { + "measurement": "bundlePackage", + "package": "@shopify/checkout-kit-protocol", + "softKiB": 16, + "hardKiB": 20 + }, + "telemetry": { + "measurement": "bundlePackage", + "package": "@shopify/checkout-kit-telemetry", + "softKiB": 5, + "hardKiB": 8 } }, "react-native": { diff --git a/.ci/bundle-size-budgets.md b/.ci/bundle-size-budgets.md index 498517987..22254ab3b 100644 --- a/.ci/bundle-size-budgets.md +++ b/.ci/bundle-size-budgets.md @@ -39,6 +39,14 @@ Budget one package with `"measurement": "bundlePackage"` and its npm name: } ``` +Configured Web package budgets (uncompressed, minified bytes): + +| Package | Soft limit | Hard limit | +| --- | --- | --- | +| `@shopify/checkout-kit` | 18 KiB | 24 KiB | +| `@shopify/checkout-kit-protocol` | 16 KiB | 20 KiB | +| `@shopify/checkout-kit-telemetry` | 5 KiB | 8 KiB | + A budgeted package that no longer contributes bytes reports a missing measurement. Remove or rename its budget in the same change. Accepting a per-package breach records that package, so the acceptance cannot satisfy