0
Fork 0
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:
Sheraff 2026-10-27 19:18:46 +01:00
commit cdabb2e818
No known key found for this signature in database
5 changed files with 121 additions and 8 deletions