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

fix(router-utils): a created file invalidates the resolutions it may take; restored plans

`invalidate()` on an add also re-asks the resolutions the new file may take
(a file of the same name with another extension, or of a directory a
resolution went into, or a package.json there). `restorePlans()` checks plans
a host persisted with modules a bundler's persistent cache restored
(`CompileOutput.persisted`): current ones join the environment's plans as
restored plans (never a hit; `invalidate()` reports them; a compile
replaces them), stale ones are returned.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Sheraff 2026-10-30 13:32:06 +01:00
commit b5cb576b6f
No known key found for this signature in database
7 changed files with 229 additions and 16 deletions