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

test(react-start-rsc): evaluate RSC CSS transform output and pin the D8 goals

evaluateCompiled now links compiled modules with the module linker
(@tanstack/compiler-test-utils, new devDependency; lockfile regenerated) in
place of a regex specifier swap, and every test asserts evaluated values: the
CSS envelope the runtime receives, the streamed payload, recorded render
calls. Inline snapshots and kind labels are gone.

- Import forms (named, renamed, namespace) x both specifiers x the three APIs
  (R-N1); the client compile loads no CSS; provider-only Rsbuild transforms
  evaluated; wrapped JSX streams the CSS.
- Dev server (R-N2): with the Start compiler plugin set up like the RSC
  integration, only the rsc environment loads CSS.
- Loosened: calls outside the transform constraints keep their arguments.
- D8 goal pins (.fails): renderToReadableStream(<JSX/>, options) streams the
  CSS and keeps the options; all-JSX conditional and logical arguments stream
  the CSS; in dev, an identifier or spread argument warns naming
  renderToReadableStream. Passing: no warning in a build, and none for a
  plain-data model.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Sheraff 2026-10-16 19:20:10 +02:00
commit 635d7c3664
No known key found for this signature in database
3 changed files with 346 additions and 190 deletions