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

fix(start-plugin-core): remove orphaned declarators of one statement with one edit (R17)

Two neighbouring function-local declarators orphaned by one erasure
(`const a = 1, b = 2` read only by a removed `createServerOnlyFn` body)
got two overlapping removal ranges and the compile threw "partially
overlaps". The removals of a multi-declarator statement are now computed
per statement from its final kept set, as runs with their separators
(the whole statement with its line when every declarator is gone), so
neighbours never partially overlap and a later round's run encloses the
earlier one. Same for `let a, b` and blocks of the module level.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
Sheraff 2026-10-25 18:05:42 +01:00
commit cd8792a75b
No known key found for this signature in database
4 changed files with 307 additions and 13 deletions