mirror of
https://github.com/TanStack/router.git
synced 2026-11-16 19:38:07 +00:00
fix(router-plugin): lowercase and identifier split options, recognition warnings, warning ledger
- Lowercase local components are renamed whether split or not, so React Refresh registers them in the chunk; identifier option values are replaced by an env-only edit and read as a symbol from the chunk (no claim: the HMR rename's ref edit would override the placeholder). - Casts and parentheses around hoisted and chunk component values are dropped so Refresh registers a bare function; the chunk refresh marker names the registered binding, so a rename is a new family. - Routes not created by a factory call bound to the Route export (helpers, IIFEs) and second factory calls are reported once naming the file, from the split planner or, with autoCodeSplitting off, from the HMR planner. - Warnings are once per (file, reason, wording) per run and are not repeated by an edit that leaves the finding as it is. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
parent
0e3968ed0d
commit
6199cea9a4
5 changed files with 105 additions and 27 deletions
Loading…
Add table
Add a link
Reference in a new issue