TypeScript - Performance & Compiler Speed
Compiler performance
- Enable incrementaland usetsc -bin monorepos.
- Use skipLibCheckto avoid checking third-party types.
- Avoid huge union types in hot paths; prefer lookup maps.
Transpile vs typecheck
- For dev servers, use SWC/ESBuild + tsc --noEmitin parallel.
Editor performance
- Limit number of open workspaces, exclude large generated folders, and keep node_modulesout ofinclude.