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

fix(start-plugin-core,router-plugin): release a finished environment's compiler state in production builds

A build of several environments (client, ssr, then nitro or rsc) kept every
finished environment's plans and import-protection state until the whole
build ended (#8794). The environment's logical build owns the release:
Start's Vite builder.build wrapper after the import-protection fixed point
(a written, non-watch build; plugin-rsc's write:false scans build again),
the Rsbuild compiler's last done pass outside watch mode, and router-plugin's
Vite closeBundle. The core's releaseEnvironment drops the environment's
plan cache; what later environments read (raw facts, server-fn registry
and snapshots, id allocator, warnings) stays.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Sheraff 2026-10-26 20:03:38 +01:00
commit f458f58452
No known key found for this signature in database
9 changed files with 269 additions and 27 deletions