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

test(start-plugin-core): pin fuzz round-2 F3 and Start compiler variants

F3 (MED): an isomorphic fn whose `.server()` or `.client()` link is stored
in a variable loses that implementation. Compiler level (both directions,
evaluated with the Start runtime of each environment) next to the N4
builder-variable pins, control: the inline chain. Build rows on Vite and
Rsbuild in the shared env-separation build (new module
src/iso-builders.ts), control: the existing inline isomorphic fn. Red:
SSR or client returns undefined.

Variants (all `.fails`, red on main):
- `applyStep(createServerFn().validator(schema)).handler(...)`: module left
  untransformed, client imports the schema;
- `withBuilder(createIsomorphicFn().server(f)).client(g)`: module throws
  "withBuilder(...).client is not a function";
- V1 mirror: SSR keeps a client-only declaration a `typeof` type alias
  reads, with its import (control without the alias);
- a class with a call in its extends clause used by a handler keeps its
  server-only import in the client (dce-keeps-class row; the server-only
  stub now also exports TaggedError);
- `((flag) as any) ? -x : y` loses its parentheses in the client output
  (upstream @babel/generator 7.29.8, no workaround);
- N3 row `(<p>page</p>)?.valueOf()`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Sheraff 2026-10-17 23:13:25 +02:00
commit 639d11a1c8
No known key found for this signature in database
4 changed files with 268 additions and 1 deletions