0
Fork 0
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:
Sheraff 2026-10-18 21:17:22 +02:00
commit de3c4a135a
No known key found for this signature in database