Skip to content

ci(repo): raise the clerk.browser.js bundlewatch budget to 76KB - #9376

Merged
alexcarpenter merged 1 commit into
mainfrom
carp/bundlewatch-browser-budget
Aug 10, 2026
Merged

ci(repo): raise the clerk.browser.js bundlewatch budget to 76KB#9376
alexcarpenter merged 1 commit into
mainfrom
carp/bundlewatch-browser-budget

Conversation

@alexcarpenter

Copy link
Copy Markdown
Member

Description

main is over the clerk.browser.js bundlewatch budget, so the Bundle size check fails on every PR opened against it:

FAIL ./dist/clerk.browser.js: 75.05KB > 75KB (gzip)

This raises that budget to 76KB.

No single PR is at fault. #9313 last ran CI on Aug 8 and passed at 74.96KB < 75KB, a 40-byte margin. It merged on Aug 10 without a re-run, and main had grown by then. It did raise clerk.legacy.browser.js and clerk.native.js for its own growth, but clerk.browser.js still fit at the time.

Confirmed with #9375, which touches only integration/ and reports the same 75.05KB.

Worth considering separately: requiring branches to be up to date with main before merge would prevent this class of failure.

Checklist

  • pnpm test runs as expected.
  • pnpm build runs as expected.
  • (If applicable) JSDoc comments have been added or updated for any package exports
  • (If applicable) Documentation has been updated

Type of change

  • 🐛 Bug fix
  • 🌟 New feature
  • 🔨 Breaking change
  • 📖 Refactoring / dependency upgrade / documentation
  • other: CI bundle-size budget

main is at 75.05KB, over the 75KB budget, so the check fails on every PR. #9313 passed at 74.96KB against a two-day-old main and merged without a re-run; drift ate the 40-byte margin before it landed.
@changeset-bot

changeset-bot Bot commented Aug 10, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: c8c2245

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 0 packages

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel

vercel Bot commented Aug 10, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
clerk-js-sandbox Ready Ready Preview Aug 10, 2026 7:00pm
swingset Ready Ready Preview Aug 10, 2026 7:00pm

Request Review

@pkg-pr-new

pkg-pr-new Bot commented Aug 10, 2026

Copy link
Copy Markdown

Open in StackBlitz

@clerk/astro

npm i https://pkg.pr.new/@clerk/astro@9376

@clerk/backend

npm i https://pkg.pr.new/@clerk/backend@9376

@clerk/chrome-extension

npm i https://pkg.pr.new/@clerk/chrome-extension@9376

@clerk/clerk-js

npm i https://pkg.pr.new/@clerk/clerk-js@9376

@clerk/electron

npm i https://pkg.pr.new/@clerk/electron@9376

@clerk/electron-passkeys

npm i https://pkg.pr.new/@clerk/electron-passkeys@9376

@clerk/eslint-plugin

npm i https://pkg.pr.new/@clerk/eslint-plugin@9376

@clerk/expo

npm i https://pkg.pr.new/@clerk/expo@9376

@clerk/expo-google-signin

npm i https://pkg.pr.new/@clerk/expo-google-signin@9376

@clerk/expo-passkeys

npm i https://pkg.pr.new/@clerk/expo-passkeys@9376

@clerk/express

npm i https://pkg.pr.new/@clerk/express@9376

@clerk/fastify

npm i https://pkg.pr.new/@clerk/fastify@9376

@clerk/hono

npm i https://pkg.pr.new/@clerk/hono@9376

@clerk/localizations

npm i https://pkg.pr.new/@clerk/localizations@9376

@clerk/nextjs

npm i https://pkg.pr.new/@clerk/nextjs@9376

@clerk/nuxt

npm i https://pkg.pr.new/@clerk/nuxt@9376

@clerk/react

npm i https://pkg.pr.new/@clerk/react@9376

@clerk/react-router

npm i https://pkg.pr.new/@clerk/react-router@9376

@clerk/shared

npm i https://pkg.pr.new/@clerk/shared@9376

@clerk/tanstack-react-start

npm i https://pkg.pr.new/@clerk/tanstack-react-start@9376

@clerk/testing

npm i https://pkg.pr.new/@clerk/testing@9376

@clerk/ui

npm i https://pkg.pr.new/@clerk/ui@9376

@clerk/upgrade

npm i https://pkg.pr.new/@clerk/upgrade@9376

@clerk/vue

npm i https://pkg.pr.new/@clerk/vue@9376

commit: c8c2245

@coderabbitai

coderabbitai Bot commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository YAML (base), Organization UI (inherited)

Review profile: CHILL

Plan: Pro Plus

Run ID: b24cbda3-83ab-45d6-9c95-336ab55c7300

📥 Commits

Reviewing files that changed from the base of the PR and between 52ec5cd and c8c2245.

📒 Files selected for processing (2)
  • .changeset/bundlewatch-browser-budget.md
  • packages/clerk-js/bundlewatch.config.json
🔗 Linked repositories identified

CodeRabbit considers these linked repositories for cross-repo context during reviews:

  • clerk/clerk_go (manual)
  • clerk/dashboard (manual)
  • clerk/accounts (manual)
  • clerk/backoffice (manual)
  • clerk/clerk (manual)
  • clerk/clerk-docs (manual)
  • clerk/cloudflare-workers (manual)
  • clerk/cli (auto-detected)
  • clerk/clerk-ios (auto-detected)
  • clerk/clerk-android (auto-detected)

📝 Walkthrough

Walkthrough

The PR raises the Bundlewatch maximum size for dist/clerk.browser.js from 75KB to 76KB. It also adds a Changeset entry with empty frontmatter.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Possibly related PRs

Suggested reviewers: jacekradko, laurabeatris, dstaley

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the main change: increasing the Bundlewatch budget for clerk.browser.js to 76KB.
Description check ✅ Passed The description explains the Bundlewatch failure, the budget increase, its cause, and the proposed follow-up.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

Comment @coderabbitai help to get the list of available commands.

@github-actions

Copy link
Copy Markdown
Contributor

API Changes Report

Generated by Break Check on 2026-08-10T19:05:20.481Z

Summary

Metric Count
Packages analyzed 19
Packages with changes 0
🔴 Breaking changes 0
🟡 Non-breaking changes 0
🟢 Additions 0

No API Changes Detected

All packages have stable APIs with no detected changes.


Report generated by Break Check

Last ran on c8c2245.

@alexcarpenter
alexcarpenter merged commit 75e92f3 into main Aug 10, 2026
81 of 85 checks passed
@alexcarpenter
alexcarpenter deleted the carp/bundlewatch-browser-budget branch August 10, 2026 19:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants