You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit dafad1d
Browse filesBrowse the repository at this point in the historyBrowse files
* chore(size): add page base + router and page live + router scenarios
The two server-component page floors carry no router, so the "base case"
they gate is a page nobody deploys. Two scenarios add @solidjs/router 2.0
(2.0.0-next.35 — the Solid 2 line, peers solid-js / @solidjs/web
^2.0.0-rc.13 — pinned exactly as a devDependency of scripts/size, resolved
from its node_modules; .npmrc's legacy-peer-deps keeps the peers out of the
lockfile since the page alias routes them to the dists): createRouter with
two routes (one preload, one lazy), the instance as the hydrated root and
useNavigate in a route component, so the router's runtime — not just its
imports — is retained.
Measured locally on next @ 49a8dca: base + router 57,001 B br
(184,378 minified) against the base page's 44,864 (145,599), the router's
contribution +12,137 br; live + router 58,243 (188,800) against 48,527
(157,562), +9,716 br. The router standalone is 32,430 / 11,216 B. Inline caps
at local measured + 10 B rounded up to 0.01 KB (57.02 / 58.26 KB), recorded
minified from the same measurement; to be confirmed against CI.
Co-authored-by: Claude via Cursor <[email protected]>
* size: router pages mount through dynamicComponent; caps re-based on next (#3838)
The two router scenarios are the base / live server-component pages plus
@solidjs/router; those pages mount through dynamicComponent since #3870
(the documented mount), so the router fixtures do too — with dynamic they
measured +2,332 / +2,278 B brotli more (the element runtime dynamic's tag
arm keeps).
Re-based onto next @ 7233451 (the frames tiers): page base + router
57.02 -> 45.95 KB (45,940 B; 144,082 B min), page live + router
58.26 -> 47.21 KB (47,197 B; 148,526 B min), measured + 10 B rounded up
to 0.01 KB.
Co-authored-by: Cursor <[email protected]>
---------
Co-authored-by: Claude via Cursor <[email protected]>
Co-authored-by: Cursor <[email protected]>
0 commit comments