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

fix(router-plugin): compile module roots like root routes

A route module's root is created with `createModuleRoot()({ ... })` from the
module's generated scope. The code splitter's file filter and its root-route
list did not know the factory, so module roots never got an HMR statement, and
Start client builds kept their `ssr`, `server` and `headers` options with their
server-only imports.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
Manuel Schiller 2026-11-07 20:10:35 +01:00
commit a048cf574e
10 changed files with 259 additions and 6 deletions