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:
parent
f5851f2578
commit
384ae08dbd
2 changed files with 27 additions and 2 deletions
Loading…
Add table
Add a link
Reference in a new issue