The Secret To Fast TypeScript
summary
TypeScript slowness is fixable: replacing monolithic builds and brittle tsconfig paths with npm/yarn/pnpm workspaces plus TypeScript project references turns a 500-file typecheck from ~101 seconds into ~40 seconds by compiling packages in isolation; NX run-many demonstrates parallel builds and cache behavior. For editor lag, pre-building libraries and shipping generated .d.ts files avoids expensive live type evaluation. Avoid deep, nested type tricks that blow up editor performance.
AI-written summary · about
chapters (11)
- 0:00TypeScript introduction
- 3:54Performance issues
- 5:19Slow builds demo
- 7:35Monorepos vs builds
- 10:08How TypeScript resolves dependencies internally
- 12:53Using workspaces for faster builds
- 15:21Project references
- 19:19Editor speed issues
- 21:53Pre-build libraries
- 23:41Best practices summary
- 24:44Q&A on React tradeoffs
related talks
23mTypescript Is SO SLOW...Or Is It?
28mTypescript Performance: Going Beyond The Surface
36mNavigating TypeScript Performance for Better Dev Experience
24mTypeScript and how I've learned to love the compiler
40mTypeScript: State of the Union
30mTypeScript: Seeing Past the Hype
28mTypescript - a necessity front-end tool
27mLessons Learned Converting Snyk Codebase to TypeScript
