@@ -104,6 +104,29 @@ const pageAlias = {
104104 ...alias
105105} ;
106106
107+ // examples/hackernews as the harness bundles it (2026-10-07): the example's
108+ // `~` alias is its src/, and `@solidjs/router` is this directory's pinned
109+ // copy (`2.0.0-next.35`), not the `2.0.0-next.29` the example's own
110+ // package.json installs under examples/hackernews/node_modules — the
111+ // harness's router is the one whose upgrade is a recorded re-base, and the
112+ // scenario must not move with the workspace install. It resolves the way
113+ // the example's Vite build resolves it: @solidjs/vite-plugin puts the
114+ // `solid` export condition first, which is `dist/index.jsx` plus the
115+ // router's per-module output, JSX compiled by the app's compiler (here the
116+ // measured checkout's, hydratable, like the app's own `.tsx`). The router
117+ // scenarios above resolve the `default` condition, the flat `dist/index.js`
118+ // fallback for consumers without a Solid compiler — a different artifact:
119+ // its build inlines `data/events`' `import("./serverForms")`, so the
120+ // server-form fallback and, through it, `action` and the flight consumer
121+ // are eager there and a lazy chunk here. The rest is the page alias: the
122+ // example's `solid-js` / `@solidjs/web` / frames / server-function imports
123+ // route to the dists.
124+ const hackernewsAlias = {
125+ "~" : "../../examples/hackernews/src" ,
126+ "@solidjs/router" : "node_modules/@solidjs/router/dist/index.jsx" ,
127+ ...pageAlias
128+ } ;
129+
107130// Observe tier (documentation/plans/observe-tier-plan.md): the artifacts the
108131// `observe` export condition selects — wiring kept (attribution hook sites,
109132// owner labels, edge counters, the diagnostics channel), checks folded. Its
@@ -4539,6 +4562,69 @@ module.exports = [
45394562 capMinified : 148668 ,
45404563 alias : pageAlias
45414564 } ,
4565+ {
4566+ name : "page: hackernews (examples/hackernews client entry)" ,
4567+ // A real application's eager script: the client entry of
4568+ // examples/hackernews — the server-components HackerNews — as its
4569+ // `vite build` ships it. The fixture (fixtures/hackernews/entry.jsx) is
4570+ // @solidjs /vite-plugin 3.0.0-next.35's generated client entry written
4571+ // out (`installServerComponents()`, `hydrate()` of the plugin's document
4572+ // shell and default error boundary around the app); the app is the
4573+ // example's own src/, unchanged, compiled hydratable by the measured
4574+ // checkout's compiler: `createRouter` with three `defineRoute`s (six
4575+ // feed paths, `/stories/:id`, `/users/:id`), each with a `preload`, the
4576+ // instance as the root with a render-prop layout, two `<Loading>`
4577+ // boundaries, four server components mounted with `dynamic()` (the nav
4578+ // directly; the three routes through the router's `query` — the
4579+ // example's `"use server"` views compile, client side, to
4580+ // `createServerReference` proxies: the one `api.ts` module is the
4581+ // example's whole server-function surface), and the one client
4582+ // component (`Toggle`: a signal, a delegated click, `class`/`style`
4583+ // effects). No client stores, no `action`, no element spread. The
4584+ // router is resolved as the example's build resolves it (the `solid`
4585+ // condition; see hackernewsAlias), so its server-form fallback —
4586+ // `data/serverForms`, `data/action`, signals' `action` — is the lazy
4587+ // chunk it is in the example's build, reported and not counted. The
4588+ // router's own modules report as `other`; the example's as `app`.
4589+ // The example mounts with `dynamic()`, not #3870's `dynamicComponent`
4590+ // (which is not on this base); it carries `dynamic`'s string-tag
4591+ // branch and the spread runtime it retains, as #3870 measured.
4592+ // Not a floor: an inline cap.
4593+ // Landing (2026-10-07, next @ 49a8dca84 + #3838): measured locally at
4594+ // 54,557 B (176,581 B minified): signals 64,308, frames 35,009, router
4595+ // 22,616 (`routing.js` 6,616, `data/query.js` 3,260, `utils.js` 2,767,
4596+ // `routers/factory.jsx` 2,584, `data/events.js` 1,997, components
4597+ // 1,327, claims 1,296, history 1,045, scroll restoration 835, …), web
4598+ // 20,630, solid 18,097, sf 13,510, app 2,412 (the example's own
4599+ // modules 1,651 — `app.tsx` 505, `toggle.tsx` 426 — and the generated
4600+ // entry/document/error boundary 761). Lazy: the codec 6,074 B br, the
4601+ // router's `serverForms.js` 2,360 (`data/serverForms`, `data/action`,
4602+ // signals' `action`). On the flat `dist/index.js` the same page is
4603+ // 181,895 / 56,084: +5,314 / +1,527 for the inlined server-form
4604+ // fallback and what it reaches. Against `next` @ 3c1d51267 measured
4605+ // with this harness, 177,417 / 54,976: −836 / −419, which is the
4606+ // thirteen commits `next` took after this branch's base (#3849 and the
4607+ // signals/web fixes beside it), not this branch's. Cap at local
4608+ // measured + 10 B rounded up to 0.01 KB; to be confirmed against CI's
4609+ // measurement (Node 24) + 10 B.
4610+ // Re-based (2026-10-07, next @ d231b9911 — #3838 and #3860's frames
4611+ // tiers merged): 47,849 B (145,471 B minified): signals 41,036 (the
4612+ // store engine — `store/store.js`, reconcile, projection — is in the
4613+ // lazy `trace.js` now, 8.19 KB br; `store/utils.js` 3,425 and
4614+ // `store/types.js` 789 stay eager for `dynamic()`'s element arm, the
4615+ // lanes 5,343 + verdict 2,682 for the router's navigation core),
4616+ // frames 26,950, router 23,376, web 20,344, solid 17,309, sf 13,967,
4617+ // app 2,491. The −31,110 / −6,708 against the landing figure is
4618+ // `next`'s (the tiers), not this scenario's. The example still mounts
4619+ // with `dynamic()`; its move to `dynamicComponent` (now on `next`) is
4620+ // the example's own change and will show here when it lands. Cap at
4621+ // local measured + 10 B rounded up to 0.01 KB, same caveat.
4622+ path : "fixtures/hackernews/entry.jsx" ,
4623+ compile : { hydratable : true , serverFunctions : "../../examples/hackernews" } ,
4624+ limit : "47.86 KB" ,
4625+ capMinified : 145471 ,
4626+ alias : hackernewsAlias
4627+ } ,
45424628 {
45434629 name : "server: floor (getRequestEvent + isServer)" ,
45444630 // What a server module that only asks "am I on the server / which
0 commit comments