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

fix(router-plugin): a route whose factory an app module re-exports is reported, and refused under Start

Route factories are recognised by their import binding from a router
package, so a route file importing `createFileRoute` from an app module
that re-exports it was neither split nor hot-updated, silently; under
Start its `server` handler and what it imports shipped in the client.

A callee named like a route factory (`createFileRoute`, `createRootRoute`,
`createRootRouteWithContext`, `createLazyFileRoute`) bound to an import of
another module is now reported once per file, with the fix (import it from
the router package); where `deleteNodes` must remove options (Start's
client) it is an error, like route options the compiler cannot read.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Sheraff 2026-10-30 11:37:09 +01:00
commit f85217dbf0
No known key found for this signature in database
4 changed files with 125 additions and 82 deletions