tsc emit vs noEmit + bundlers
Compare plain tsc output vs --noEmit mode when using bundlers like Vite or webpack.
Intro
Goal: Learn how tsc emits JS, what --noEmit does, and why bundlers often replace emit.
tsc emit
By default, tsc emits compiled JS files (and optionally .d.ts) to an outDir.
// tsconfig.json
{
"compilerOptions": {
"outDir": "dist"
}
}
// Command
npx tsc
// Produces JS + .d.ts in distAll lessons in this course
- tsc emit vs noEmit + bundlers
- Vite / esbuild / SWC / Rollup basics
- Declarations, source maps, types exports