Repository navigation
ci(bench): raise the hydrating byte budgets for the React 19 hydration fallback - #1806
Merged
Merged
Conversation
…n fallback #1784 makes hydration handle mismatches like React 19 and keeps all hydration code out of clients that only call createRoot. Under the size benches' esbuild minifier the hydrating scenarios pay for that split: the flag guards esbuild does not fold, the installed hydration driver, and the boundary fallback's island adoption and seed discard. hydrate-root: raw +1,336, gzip +945, brotli +767 deferred-hydration: raw +2,814, gzip +1,452, brotli +1,257 Measured on #1784 merged with main 8aeb6c0, as measured + headroom. #1784 itself lowers 102 other budgets (every createRoot scenario and app). Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub. 2 Skipped Deployments
|
trueadm
marked this pull request as ready for review
October 6, 2026 02:13
This was referenced Oct 6, 2026
Merged
4 tasks
7 tasks done
This branch was previously deployed
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
Budget-only raise for #1784, the React 19 hydration fallback. It changes only
benchmarks/bundle-size/minimal-budgets.json, and only the two scenarios that callhydrateRoot:hydrate-rootdeferred-hydrationWhy
#1784 makes hydration mismatches behave as in React 19 and keeps every hydration-only declaration out of clients that only call
createRoot. It uses a Svelte 5-stylehydratingflag, plus code that only hydration installs, and the hydration-free gate pins the result.The size benches minify with esbuild, which does not fold the flag, so hydrating bundles pay for the split:
<Hydrate>islands and discards seeds.In return, #1784 lowers 102 other budgets: every
createRootscenario and app, by about 2.4–3.1 kB raw each. With Vite's default minifier, acreateRootprobe drops by 18.6 kB raw.Measured on #1784 merged with main
8aeb6c0e5a, as measured + headroom (32 raw and gzip, 256 brotli).Changes
benchmarks/bundle-size/minimal-budgets.json:hydrate-rootanddeferred-hydrationraised as above.Validation
node benchmarks/bundle-size/run-minimal.mjs --write-budgetson fix(octane): handle hydration mismatches like React 19 (boundary/root client-render fallback) #1784's head. Only these six values exceeded main's budgets.pnpm format:checkpnpm typecheckpnpm test(no code changes)Risk / follow-ups
Provenance
agent-authored)🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Note
Low Risk
Only updates CI bundle-size thresholds in JSON; no application or framework code changes.
Overview
Raises minimal bundle size budgets in
minimal-budgets.jsonfor the two scenarios that usehydrateRoot:hydrate-rootanddeferred-hydration, across raw, gzip, and brotli (roughly +1.3–2.8 kB raw depending on scenario).This is a budget-only change so CI stays green after the upcoming React 19 hydration fallback work (#1784), which adds hydration-specific code that shows up in hydrating bundles under the esbuild-minified size bench. No runtime or library code is modified here.
Reviewed by Cursor Bugbot for commit 6480663. Bugbot is set up for automated code reviews on this repo. Configure here.