mirror of
https://github.com/TanStack/router.git
synced 2026-11-16 19:38:07 +00:00
fix(start-plugin-core): list the server fns a handler's client components import in the RSC provider manifest
plugin-rsc builds the provider before the client, and the provider's graph unfolds from its own manifest; the SSR scan deletes handlers with the imports only they read, so a 'use client' component a handler renders and the server-fn modules it imports were seen by no environment before the client build (#7943). The provider's real build now starts by walking the raw reach of every registered server-fn module (static and the new TargetFacts.lazyImports) and compiling the candidate modules in the provider environment, outside any transform, so the manifest lists them. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
parent
48f52b5e0e
commit
b255df8167
5 changed files with 169 additions and 23 deletions
Loading…
Add table
Add a link
Reference in a new issue