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

fix(start-plugin-core): interim import-protection graph with the compiler host; maps always; dev glue newline

- Import protection relied on the previous compiler's side effects: its
  resolves of a module's imports recorded graph edges before the transform,
  and its hotUpdate re-transformed every Vite importer of a changed module.
  The host does neither (recognition-time resolves are marked and ignored,
  dependents only). `ImportGraph.invalidate` now keeps a changed module's
  incoming edges (its importers are not transformed again) and unreachable
  pending violations stay pending until an importer records the edge (the
  bundled-dev rule, for every dev mode). Flips the pinned "added by an edit"
  / warm-up / served-while-transforming rows.
- The compiler always emits a map in build mode: downstream positions go
  through the combined map whatever `build.sourcemap` says.
- The dev self-accept glue starts with a newline (sources without a trailing
  newline).
- The `invalidate()` resolves carry the compiler-resolve marker too.
- Lint fixes; smoke tests follow the export-named wrapper.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
Sheraff 2026-10-24 21:34:15 +02:00
commit 91a0504a76
No known key found for this signature in database
11 changed files with 159 additions and 76 deletions