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

perf(compiler): a leading comment is no statement-start hazard

guardStatementStart took the '/' of a generated '/* @__PURE__ */' annotation for a
token that could continue the previous statement, so every lazyRouteComponent
replacement walked the AST from the root to find whether it starts a statement.
It now reads the first token past leading comments.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Sheraff 2026-10-29 03:03:20 +01:00
commit 384ae08dbd
No known key found for this signature in database
2 changed files with 27 additions and 2 deletions