Skip to content

ci: tree-shaking regression guard for the client runtime - #545

Merged
ryansolid merged 1 commit into
nextfrom
size-guard
Jul 15, 2026
Merged

ryansolid merged 1 commit into
nextfrom
size-guard

Conversation

@ryansolid

Copy link
Copy Markdown
Owner

Companion to solidjs/solid#2883's size work and the size-limit tracking landing in the solid repo. scripts/size-guard.mjs bundles two import-subset scenarios from src/client.js with rxcore external — measuring only this package's tree-shaken contribution, independent of the consumer's core — and fails CI when the gzip cost exceeds committed ceilings (~5% headroom over today: compiled-JSX core 4,264 gz / ceiling 4,480; full surface 7,575 gz / ceiling 7,950).

"_DX_DEV_" is text-replaced to false the same way consumer build pipelines do (esbuild define can't reach string literals). The core scenario's baseline already excludes the hydration runtime per #544 — re-coupling it costs ~450 bytes against 216 of headroom, so it fails loudly. Deliberate feature additions bump the ceiling in the same PR with a stated reason.

🤖 Generated with Claude Code

…id#2883)

Bundles import-subset fixtures from src/client.js with rxcore external
(measuring only this package's tree-shaken contribution) and fails when
gzip cost exceeds committed ceilings with ~5% headroom. The compiled-JSX
core scenario excludes the hydrate()-installed runtime — the property
#544 established and this guard keeps.

Co-Authored-By: Claude Fable 5 <[email protected]>
@cursor

cursor Bot commented Jul 15, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@changeset-bot

changeset-bot Bot commented Jul 15, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 38e56fc

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

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

Click here to learn what changesets are, and how to add one.

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

@ryansolid
ryansolid merged commit a9f7d2a into next Jul 15, 2026
3 checks passed
@ryansolid
ryansolid deleted the size-guard branch July 15, 2026 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant