0
Fork 0
mirror of https://github.com/TanStack/router.git synced 2026-11-16 19:38:07 +00:00

test(start-plugin-core): speed pass on hydrate-dev and known-bugs-start-compiler

Measured first (spc test:integration, idle box): hydrate-dev 11.4 s and
known-bugs-start-compiler 11.4 s at 1 worker, the two slowest files
(13.4-17 s at 4 workers under load, against the 15 s per-file limit).

- hydrate-dev.test.ts split per bundler: the Vite rows stay (React edit,
  split route composition, Solid edit), the Rsbuild rows move to
  hydrate-dev-rsbuild.test.ts, the shared apps and edit scenario to
  hydrate-dev-edits.ts. Every row edits its app, so no server is shared.
  No assertion changed.
- known-bugs-start-compiler: the Vite dev server block moves to
  known-bugs-start-compiler-dev.test.ts (unchanged, plus two lint fixes:
  the settled flag is read through a function, `isRunnableDevEnvironment`
  alone guards the SSR environment).
- The control "SSR: a server fn the client references is callable over
  HTTP ..." and the D6 pin "... only server code references is not
  callable over HTTP" read one build and run per bundler
  (`callClientAccess`, memoised): one build less per bundler.
- The build pin "client: the server-only module of a class only server
  code uses is not bundled" runs on Vite only. The compiler decides it
  (the import it leaves in the client module loads the server-only module
  in any bundler); the in-process pin "client: a class used by a server fn
  handler does not load its server-only import"
  (../known-bugs-start-compiler.test.ts) decides it, and the Vite cell
  stays its build canary. Removed: the Rsbuild cell (1 xfail).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Sheraff 2026-10-19 15:51:26 +02:00
commit 4209d5d630
No known key found for this signature in database
5 changed files with 749 additions and 689 deletions