mirror of
https://github.com/TanStack/router.git
synced 2026-11-16 19:38:07 +00:00
test(router-generator): reuse the previous TypeScript program in type checks
typeErrorsOf passes the previous program as `oldProgram` to ts.createProgram, so the compiler reuses what it can (the router packages' type definitions are the same files in every app). Same compiler options, same diagnostics; real-router.test.ts went from 4.8 s to 3.2 s in a back-to-back run on the same load. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
8242ade19b
commit
de3c4a135a
1 changed files with 19 additions and 10 deletions
Loading…
Add table
Add a link
Reference in a new issue