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:
parent
caf2ee641a
commit
635d7c3664
3 changed files with 346 additions and 190 deletions
Loading…
Add table
Add a link
Reference in a new issue