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:
parent
7728f677c8
commit
f85217dbf0
4 changed files with 125 additions and 82 deletions
Loading…
Add table
Add a link
Reference in a new issue