Modern Bundlers & TypeScript: Transpile, Don't Check

Modern bundlers like Vite prioritize speed by only transpiling TypeScript files, not type-checking them. This enables sub-50ms updates during development. The footgun: your dev server won't report type errors; you must run `tsc --noEmit` separately.
Modern bundlers like Vite make a key trade-off for speed: they only transpile TypeScript files, they don't type-check them. This allows for near-instant development updates, as only the changed file is processed. This is used in frameworks like Vue and React for fast Hot Module Replacement (HMR). The main footgun is assuming the dev server catches type errors. It doesn't. You must run `tsc --noEmit` in a separate process or as part of your production build script to ensure type safety.
Read the original → vite.dev
- #typescript
- #bundlers
- #vite
- #build-tools
- #web-performance
Get five bites like this every day.
Tezvyn delivers a daily feed of 60-second tech bites with quizzes to lock in what you learn.