tezvyn:

How do modern build tools handle TypeScript vs tsc?

Source: vite.devintermediate

WHAT IT TESTS: separating transpilation from type checking for speed. Great answer: fast native tooling strips TS per-file on demand via native ESM; browser loads only visited modules; tsc/ts-loader check/bundle the whole graph upfront.

WHAT IT TESTS: whether you understand that modern dev servers decouple type checking from transformation and use native ESM to avoid upfront bundling. A great answer hits four things: first, Vite uses fast native tooling to strip TS types per file on demand, skipping type checks; second, the browser fetches only visited modules over native ESM; third, tsc and ts-loader type-check and/or bundle the whole graph before serving, so startup scales with app size; fourth, native-speed transforms make per-file work far faster than Node-based…

Read the original → vite.dev

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.

How do modern build tools handle TypeScript vs tsc? · Tezvyn