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

test(router-plugin): G8 escalation also fails on a dangling name the production build spells otherwise

V-F validation of 88720e56a0: `expectValidModules` excused a dev module's
free name whenever the production build did not read that exact name, so
a compiler whose production output reads a different dangling name (e.g.
one that depends on the mode) passed 27 of 28 rows of
code-splitter-route-options (temporary compiler patch, reverted). The
escalation now also runs the build harness's own dangling-name check on
that production build (`describe('client')`, `DanglingNameError`), minus
the names the route file itself reads free; with the patch 22 of 28 rows
fail (the 6 others do not check modules), a G8-legal unused export with a
dangling read still passes.

`expectValidModules` reads the modules with the route file's language, so
code-splitter-scope's `.ts` row uses it instead of a direct module-alone
`getModuleErrors` (now decided on the production build like the others).
README: G8 sentence corrected, the remaining module-alone sites named.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Sheraff 2026-10-22 06:20:41 +02:00
commit 8435535a10
No known key found for this signature in database
3 changed files with 54 additions and 22 deletions