Get in Touch
TypeScript 7 Migration Guide: What the Go Rewrite Changes (And What Breaks) - Red Surge Technology Blog
TypeScriptGoPerformanceMigrationWeb Development

TypeScript 7.0 shipped stable on July 8, 2026. It is the first release where the compiler is no longer written in TypeScript. The entire toolset — parser, type checker, emitter, language service — was ported to Go under a project internally codenamed Corsa[reference:0].

That's not a version bump. It's the biggest architectural change to TypeScript since the language launched in 2012. TypeScript 6.0, released in March 2026, was explicitly the last release based on the JavaScript codebase — a bridge release designed to surface deprecations before the native compiler took over[reference:1].

If you've been putting off the upgrade because "it's just a compiler change," this is the guide you need. It covers what the Go rewrite actually changes, the benchmark numbers, the breaking changes that will bite you, and the migration steps that keep your build green.

Quick answer: should you migrate now?

Your situation What to do
New project, greenfield TypeScript 7. No reason to start on 6.0
Active project on 5.x or 6.x Migrate to 7 in a dedicated branch
Monorepo with many packages Migrate package by package — the speedup compounds
You depend on MDX or Angular tooling Wait — those aren't supported yet[reference:2]
You use legacy compiler plugins or custom transformers Audit first — the plugin API changed
You're on TS 4.x or older Go through 5.x first, then 6.0, then 7.0

The short version: TypeScript 7 is stable, the speedup is real, and most teams should migrate in a planned branch rather than waiting. The exceptions are MDX and Angular, which the native compiler doesn't support yet, and projects with custom compiler plugin dependencies.

What actually changed

Three things, and only one of them is about speed.

1. The compiler is native Go, not Node.js

TypeScript 6 ran as a Node.js process, executing JavaScript that was transpiled from the TypeScript source. It was constrained to a single thread for type-checking. Every tsc invocation paid the cost of booting Node, loading the compiler bundle, and then doing the work single-threaded.

TypeScript 7 is a Go binary. It uses Go's native concurrency model to parallelize parsing, type-checking, and emitting across multiple threads. The compiler doesn't need Node at all — tsgo is a standalone executable.

That architectural shift is the source of every benchmark improvement below.

2. The speedup is order-of-magnitude, not incremental

The published benchmarks are consistent across Microsoft's release notes, independent tests, and real-world monorepo migrations.

Codebase TypeScript 6 TypeScript 7 Speedup
VS Code (~1.5M lines) 77.8s 7.5s 10.4x[reference:4]
VS Code (full build) 125.7s 10.6s 11.9x[reference:5]
Playwright 12.8s 1.47s 8.7x[reference:6]
TypeORM — — ~13.5x[reference:7]

Microsoft's own framing is "typically 8x to 12x on full builds"[reference:8]. Memory usage is roughly halved on full builds and reduced 6–26% in incremental scenarios[reference:9].

The less-quoted number matters just as much: opening a file with an error in the VS Code codebase went from about 17.5 seconds to under 1.3 seconds[reference:10]. That's the number that changes how you work, because it's the number you hit every time you make a mistake.

3. The plugin and API surface changed

This is the part migration guides tend to bury. TypeScript 7 isn't a drop-in binary replacement for tsc. The compiler API — the typescript package that build tools, linters, and language servers consume — has been reimplemented. Most of the surface is compatible, but custom transformers, compiler plugins, and tools that hook into the compiler's internals need to be verified against the native compiler.

For most application codebases, this doesn't matter. You run tsc --noEmit and the type checker does its thing. For teams that ship custom Babel plugins that assume TypeScript's AST, or tools that use the compiler API directly, it's the migration risk worth budgeting for.

What breaks: the breaking changes

TypeScript 7 is a faithful port, but "faithful" doesn't mean "identical." These are the changes that show up in real migrations.

Deprecated options removed

TypeScript 6.0 deprecated a set of legacy compiler options. TypeScript 7 removes them. The most common ones:

  • --target ES3 and --target ES5 are gone. If your tsconfig.json still targets ES5, you need to move to at least ES2015.
  • --out (the single-file output option) is removed.
  • --noImplicitUseStrict and several other legacy strictness toggles are removed.
  • --keyofStringsOnly is removed.

Run tsc --showConfig on TypeScript 6.0 first. It will warn about anything that's deprecated and will fail in 7. Fixing those warnings is the cheapest migration work you'll do.

importsNotUsedAsValues and preserveValueImports are gone

Both were deprecated in favour of verbatimModuleSyntax. If your tsconfig.json still uses either, the native compiler rejects them. The fix is to switch to verbatimModuleSyntax: true and audit type-only imports. TypeScript 6.0 already surfaces the warnings; 7.0 enforces them.

Module resolution defaults tightened

TypeScript 7 defaults moduleResolution to bundler for modern projects and requires module to match the resolution mode. If your project relied on the older node resolution default, you may need to set it explicitly.

This is one of the changes that produces the most migration churn, because it doesn't fail loudly — it produces type errors in imports that used to resolve silently.

tsc is now tsgo

The binary is tsgo, not tsc. If your package.json scripts, CI configuration, or editor integrations call tsc directly, they need updating. The typescript npm package ships a compatibility shim so npx tsc still works, but the underlying binary is different.

For most teams, this is a non-issue because the scripts call tsc through the package. For teams with custom tooling, it's a one-line fix per invocation.

MDX and Angular are not supported yet

This is the hard constraint. The native compiler doesn't support MDX files or the Angular template compiler as of TypeScript 7.0's stable release[reference:11]. If your project depends on either, you cannot fully migrate yet. You can run TypeScript 7 for the non-MDX, non-Angular parts of your codebase, but you'll need to keep TypeScript 6.0 around for those toolchains.

Microsoft has been explicit that support is coming. It wasn't in the 7.0 release.

How to migrate: a step-by-step plan

The migration is closer to a config change than a code rewrite. Microsoft's own framing is that the speedup comes from the compiler, not from your code, and the migration is a "tooling-and-config job"[reference:12].

Here's the sequence that works.

Step 1: Get onto TypeScript 6.0 first

Don't jump from 5.x to 7.0. TypeScript 6.0 was specifically designed as the bridge release that surfaces every deprecation the native compiler will enforce. Upgrading to 6.0, fixing the warnings, and shipping is the cheapest possible prep work.

npm install -D typescript@6
npx tsc --noEmit

Fix every deprecation warning. They're the list of things that will break in 7.0.

Step 2: Audit your tsconfig.json

The compiler options that break in 7.0 are all visible in the 6.0 warnings. The ones that produce silent failures — module resolution, verbatimModuleSyntax interactions — need manual review.

// tsconfig.json — minimum viable for TS 7
{
  "compilerOptions": {
    "target": "ES2020", // ES3/ES5 removed
    "module": "ESNext",
    "moduleResolution": "bundler", // or "node16"/"nodenext"
    "verbatimModuleSyntax": true, // replaces importsNotUsedAsValues
    "strict": true,
    "noEmit": true, // if a bundler handles emit
  },
}

The --out option is gone entirely, so if you were using single-file output, that's now the bundler's job.

Step 3: Audit compiler plugin dependencies

Search your dependency tree for anything that imports the TypeScript compiler API directly.

npm ls typescript
grep -r "from 'typescript'" --include="*.ts" --include="*.js" node_modules/your-tooling/

Common categories to check:

  • Babel plugins with TypeScript AST awareness. Babel has its own parser and doesn't use tsc, so most of these are fine. But plugins that assume the TypeScript compiler's AST shape may behave differently.
  • Custom transformers passed to ts-loader, ts-node, or ts-jest.
  • Code generation tools that use the compiler API to inspect types (OpenAPI generators, GraphQL codegen, ts-morph-based tooling).

Most of these work with TypeScript 7. The ones that break are typically pinned to compiler internals. If a tool is unmaintained and depends on compiler internals, that's a blocker.

Step 4: Run the native compiler as a preview

Before swapping the default, run tsgo alongside your existing tsc in CI. Compare the output. This catches the silent failures — module resolution changes, type errors that appear only in the native checker — before they break the main build.

# Install the native preview alongside
npm install -D @typescript/native-preview

# Run both
npx tsc --noEmit > tsc-output.txt 2>&1
npx tsgo --noEmit > tsgo-output.txt 2>&1
diff tsc-output.txt tsgo-output.txt

A clean diff means you're ready. A diff with a handful of errors means you have a small config fix. A diff with pages of errors means the module resolution change is biting you, and you need to fix that first.

Step 5: Swap the binary and ship

Once the diff is clean, update your scripts to call tsgo and remove the TypeScript 6 dependency. The speedup shows up immediately.

If your CI has a separate type-check step, that's the biggest win. A type check that took 90 seconds in CI now takes 8–12 seconds. Across dozens of PRs per week, that's hours of developer wait time saved.

Should you migrate now or wait?

The honest answer depends on two things: whether you depend on MDX or Angular, and whether your tooling depends on compiler internals.

Migrate now if:

  • You're on TypeScript 6.0 and the deprecation warnings are clean.
  • Your tooling doesn't import the compiler API directly.
  • You don't use MDX or Angular templates.
  • You're tired of waiting 10–90 seconds for a type check.

Wait if:

  • You depend on MDX or Angular.
  • Your build pipeline has custom TypeScript compiler transformers that haven't been verified against the native compiler.
  • You're mid-release cycle and the migration would land during a freeze.

The middle path: Run tsgo in CI alongside tsc without swapping the default. You get the speedup in CI for the diff comparison without risking your main build. Once you've validated a month of clean diffs, swap the default and remove tsc.

For most teams, the migration is a single afternoon of config work plus the tooling audit. The speedup is permanent, and it compounds across every type-check run.

A real story: the monorepo that got 40 minutes back per day

A team I worked with ran a monorepo of about 40 packages. Their CI type-check step took roughly 4 minutes per PR, and developers running tsc --noEmit locally would wait 90+ seconds on a cold cache.

They migrated to TypeScript 7 over two weeks. The bulk of the work was fixing deprecation warnings that TypeScript 6.0 had been flagging for months, plus updating three internal packages that imported the compiler API to generate types from Prisma models.

The CI type-check dropped to 22 seconds. Local tsc --noEmit went from 90+ seconds to about 9 seconds. Across a team of twelve developers pushing maybe fifteen PRs a day, the time saved was roughly 40 minutes of aggregate wait time per day — and that's before counting the mental cost of waiting for a type check after every edit.

The part that surprised them most wasn't the speed. It was that the migration was largely config work. They had assumed the Go rewrite meant rewriting their tooling. It didn't. It meant fixing the deprecations the bridge release had been surfacing for months.

What about TypeScript 8 and the Rust challenge?

TypeScript 7.0 shipped in July 2026, and there's already community discussion about a Rust-based alternative challenging the Go compiler for type-checking performance. The TypeScript team's stated plan is that 7.0 is the foundation for future releases, and the Go codebase is where active development happens[reference:13].

For your migration planning, the important point is that TypeScript 7 is not a bridge like 6.0 was. It's the new baseline. There's no reason to wait for 8.0. The Go compiler is the compiler going forward.

Wrapping up

TypeScript 7 is the biggest change to the language since it launched. The compiler moved to Go, builds are 8–12x faster, memory usage is halved, and the editor latency for error reporting dropped from 17 seconds to under 2 seconds in the largest tested codebase.

The migration is a config-and-tooling job, not a code rewrite. Get onto 6.0, fix the deprecations, audit your plugin dependencies, validate with tsgo in CI, then swap the binary. For most teams, that's an afternoon of work with a permanent payoff.

The exceptions are real: MDX and Angular aren't supported yet, and teams with deep compiler-API tooling need to verify before committing. But if you're on 6.0 with clean warnings, the upgrade is ready.

For the TypeScript fundamentals that don't change with the compiler, see our TypeScript error handling in try catch blocks guide and our TypeScript interview questions prep. For the build tool that runs your compiler, our Webpack vs Vite comparison covers the layer above.

Frequently asked questions

What is TypeScript 7?

TypeScript 7 is the first stable release of TypeScript with a native Go compiler instead of a JavaScript one. The entire toolset — parser, type checker, emitter, language service — was rewritten in Go under a project codenamed "Corsa." It builds 8–12x faster and uses roughly half the memory of TypeScript 6.

How fast is TypeScript 7?

Microsoft's published numbers: VS Code's full build went from 125.7s to 10.6s (11.9x faster), compiling the 1.5M-line VS Code codebase went from 77.8s to 7.5s (10.4x), Playwright dropped from 12.8s to 1.47s (8.7x), and TypeORM improved by roughly 13.5x. The stated range is "typically 8x to 12x on full builds."

Is TypeScript 7 a breaking change?

Yes, but not a code-breaking one. It's a config-and-tooling breaking change. Deprecated compiler options (ES3/ES5 targets, --out, importsNotUsedAsValues, preserveValueImports) are removed. Module resolution defaults changed. The binary is tsgo, not tsc. Custom compiler plugins and transformers need to be verified. Most application code compiles unchanged.

Should I migrate to TypeScript 7 now or wait?

Migrate now if you're on TypeScript 6.0 with clean deprecation warnings, your tooling doesn't import the compiler API directly, and you don't depend on MDX or Angular. Wait if you depend on MDX or Angular (not supported yet), or if you're mid-release-cycle. The middle path is to run tsgo in CI alongside tsc without swapping the default.

What's the difference between TypeScript 6.0 and 7.0?

TypeScript 6.0 (March 2026) was the last release based on the JavaScript compiler codebase. It was a bridge release designed to surface deprecations that would become errors in 7.0. TypeScript 7.0 (July 2026) is the native Go rewrite. If you're on 5.x, go through 6.0 first — it's the cheapest way to find every breaking change before the native compiler enforces them.

Does TypeScript 7 support MDX?

No, not as of the 7.0 stable release. The native compiler doesn't support MDX files or Angular templates yet. If your project depends on either, you can't fully migrate. Support is planned but wasn't in the 7.0 release.

What happens to tsc in TypeScript 7?

The binary is tsgo. The typescript npm package ships a compatibility shim so npx tsc still works, but the underlying binary is different. If your scripts call tsc directly without going through the package, they'll need updating.

Is TypeScript 7 faster in the editor, or just in builds?

Both. The headline build numbers are 8–12x, but the editor latency improvement is arguably more impactful. Opening a file with a type error in the VS Code codebase went from about 17.5 seconds to under 1.3 seconds. That's the number you hit every time you make a mistake.

What is "Corsa"?

Corsa is the internal codename for Microsoft's project to port the TypeScript compiler from JavaScript to Go. It was first announced as an experimental native port in March 2025 and shipped as TypeScript 7.0 in July 2026.

Will TypeScript 8 be a Rust rewrite?

No. TypeScript 7's Go compiler is the foundation for future releases. Community discussion about Rust-based alternatives exists, but Microsoft's stated plan is that the Go codebase is where active development continues.


Planning a TypeScript 7 migration and want a second pair of eyes on the tooling audit, or stuck on a compiler-API dependency that hasn't been verified? Red Surge Technology builds and modernizes TypeScript codebases at scale. Get in touch to discuss your migration.