mirror of
https://github.com/TanStack/router.git
synced 2026-11-16 19:38:07 +00:00
fix(router-utils): keep imports a route module never read
An import specifier now follows the same provenance rule as declarations: it leaves an output only when our edits orphaned it (its readers were moved or erased). A specifier the source never reads stays in the route module, so its module still evaluates there, as it does without the plugin; a mixed statement keeps its unread specifiers when the others move. A value import a route module only uses in type positions still leaves it (TypeScript erases it). Split chunks still get only what they read. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
8d7caead8e
commit
cdabb2e818
5 changed files with 121 additions and 8 deletions
Loading…
Add table
Add a link
Reference in a new issue