TLDR Dev · ARTICLES & TUTORIALS
FIXING TYPESCRIPT PERFORMANCE PROBLEMS: A CASE STUDY
Summary from the TLDR Dev newsletter
Viget's TypeScript monorepo had become painfully slow, so its team used `tsc --generateTrace` to find one file taking 80 seconds to type-check. They deleted parts of the file with complex type inference, inlined queries within the file which previously required expensive type-checking, and cleaned up circular deps and barrel files.