Skip to content
OBLAIDISH NEWS
TypeScript 6.0 --noEmit cuts build times by 60-80%
TX_743331Engineering

TypeScript 6.0 --noEmit cuts build times by 60-80%

TypeScript 6.0's --noEmit flag enables type-only builds, allowing CI pipelines to run type checking in parallel with esbuild or swc, reducing build times by 60-80% while preserving full type safety [Dev.to].

TypeScript 6.0 introduces a native execution mode and a default "moduleResolution": "bundler" option, allowing the compiler to skip JavaScript emission entirely when --noEmit is set [Dev.to]. This flag enables a flag-only workflow: tsc performs full semantic analysis and exits without writing .js files, while modern bundlers such as esbuild or swc strip type annotations in a separate step. According to benchmarks, CI builds drop from 2-4 minutes to under 1 minute, a 60-80% reduction in wall-clock time [Dev.to].

The --noEmit flag simplifies the toolchain by eliminating the need for ts-node, tsx, or loader hooks in development. Teams can run node --experimental-strip-types src/index.ts directly, keeping the local environment lean and avoiding version mismatches between runtime and compiler [Dev.to].

By decoupling type checking from bundling, teams gain deterministic CI stages that can be scaled independently. This pattern turns type safety from a bottleneck into a cheap gate, making rapid iteration feasible for any product that ships multiple releases per week. For example, declaration files for published packages still require a second tsconfig with "emitDeclarationOnly": true, but application code never touches the compiler’s emit phase [Dev.to].

The benefits of this approach include reduced CI queue pressure and cost savings. In organizations that trigger dozens of builds per day, shaving a minute per run frees up compute slots and shortens the feedback loop for developers. The article quantifies the cost: each extra minute in CI translates to roughly $0.10 in cloud-instance usage per build, amounting to $300+ annually for a team of 20 [Dev.to].

operator_channel
[ comments_offline · provider_not_configured ]
transmission_log

Subscribe to the broadcast.

Daily digest of the day's most important tech news. No fluff. Engineering signal only.

// delivered via substack · double-opt-in confirmation