mirror of
https://github.com/TanStack/router.git
synced 2026-11-16 19:38:07 +00:00
test(compiler-test-utils): real packages, React JSX and load observers in the module linker
FIX-PLAN A3a/A4 (W2-b). The linker no longer renders JSX with a string stand-in: JSX compiles with React's automatic runtime (Vite's Oxc transform, what @vitejs/plugin-react configures) and graphs link real installed packages (`packages`), so a test renders with the real React the modules use (`importPackage`). New load observers: `requested` (every module a graph's modules requested), `fork()` (fresh instances, same modules and stubs) and `has(id)`. - `render.ts`: real framework transforms (Vite's React transform, vite-plugin-solid, @vitejs/plugin-vue-jsx, driven as Vite drives them) and server renderers (react-dom/server, solid-js/web, vue/server-renderer), all from the consumer's own packages. - `lazy-probe.ts`: laziness, loaded modules and groups observed by the modules a trigger requests, in forks, never by recognising a lazy helper (SPEC J2.6, §5.3, §5.8). - The linker control GEN-39 uses a plain exported object instead of JSX. - react-start-rsc keeps its JSX-as-text through the deprecated `runtime` option until FIX-PLAN A3c (W2-j) replaces that harness. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
5b477be247
commit
cd267d3073
7 changed files with 768 additions and 88 deletions
Loading…
Add table
Add a link
Reference in a new issue