TypeScript 7 Explained: The Native Go Compiler and 10x Faster Builds

What changed in TypeScript 7: the native compiler ported to Go, typical 8-12x faster builds, editor responsiveness, API gaps in 7.0 and how to upgrade.

Published December 6, 2026

TypeScript 7 is the biggest change to the TypeScript toolchain since its creation. Microsoft ported the compiler and language service from TypeScript (running on Node.js) to native Go code, and the stable 7.0 release arrived in July 2026. The headline is speed: Microsoft reports typical full-build speedups of roughly 8 to 12 times, with large projects like VS Code type-checking in seconds instead of more than a minute.

The concept

Importantly, this was a port, not a rewrite. The team carried over the existing type-checking logic so that TypeScript 7 behaves like TypeScript 6 for type checking: the same errors, the same inference. Speed comes from native code execution and shared-memory parallelism across CPU cores, which the JavaScript implementation could not exploit well.

There are caveats for early adopters. TypeScript 7.0 does not yet ship the full programmatic compiler API, which tools such as some webpack loaders, linters and custom transformers rely on; Microsoft has said the API is planned for 7.1. Most projects using tsc for type checking and modern bundlers for emitting can upgrade immediately, while tools depending on the API may need to keep a TypeScript 6 installation alongside for now.

How much faster?

TypeScript 6 (JS compiler)≈78 sTypeScript 7 (native Go)≈7.5 s
Microsoft's reported full type-check time for the VS Code codebase.

What changes and what does not

AreaTypeScript 7.0Notes
Type checking resultsSame as TS 6Logic ported structurally
Build speed≈8-12x faster typicalParallel, native
Editor (language service)Much faster project load and responsesLarge monorepos benefit most
Programmatic APINot complete in 7.0Planned for 7.1; affects some loaders/tools
Installationnpm package, tsc entry pointSame workflow

Upgrading

  1. Check TypeScript 6 compiles cleanly with no deprecation warnings
  2. Install TypeScript 7 and run tsc --noEmit in CI
  3. Compare errors with the TS 6 baseline
  4. Check tools that use the compiler API (loaders, linters, codegen)
  5. Keep TS 6 for API-dependent tools until 7.1 if needed
A careful upgrade path.

Practical examples

Install and type-check

Same commands as before.

npm install -D typescript@7
npx tsc --version
npx tsc --noEmit -p tsconfig.json

Measure before and after

Use extended diagnostics to compare build times.

npx tsc --noEmit --extendedDiagnostics | grep -E 'Check time|Total time'

Typical modern split: tsc checks, bundler emits

The setup that benefits immediately.

{
  "scripts": {
    "typecheck": "tsc --noEmit",
    "build": "vite build"
  }
}

Common mistakes

  • Upgrading without checking tools that depend on the TypeScript compiler API.
  • Assuming 7.0 changes type-checking semantics (it aims not to).
  • Ignoring deprecation warnings from TypeScript 6 before moving to 7.
  • Benchmarking on a tiny project and expecting the same gains as large codebases.

Key takeaways

  • TypeScript 7 ports the compiler to native Go for roughly 10x speed.
  • Type-checking behaviour matches TypeScript 6.
  • The full programmatic API is planned for 7.1.
  • Most projects using tsc + a bundler can upgrade now.

FAQ

Do I need to change my code?

Generally no, beyond resolving anything already deprecated in TypeScript 6.

Does it change the JavaScript output?

Emit is intended to be equivalent; most teams emit with bundlers anyway.

Why Go and not Rust?

The team chose Go for a structurally faithful port of the existing codebase, with garbage collection and similar data structures making a line-by-line port practical.

More JavaScript articles