TypeScript 7.1 Beta Restores Compiler API, Speeds Vue Checks 4.6x

TypeScript 7.1 beta brings back the compiler API lost in 7.0 and adds content mappers that give Vue and Svelte first-class support.

@sharedot

TypeScript 7.1 Beta Restores Compiler API, Speeds Vue Checks 4.6x

By @sharedot · · 6 pages

  • Programming
  • Typescript
  • Vue
  • Svelte
  • Compilers

TypeScript 7.1 beta brings back the compiler API lost in 7.0 and adds content mappers that give Vue and Svelte first-class support.

The API is back, split into modules

Microsoft released TypeScript 7.1 Beta on October 20, 2026, the first update to the Go-based native compiler that debuted as TypeScript 7.0 in July, with Daniel Rosenwasser announcing the beta ahead of a release candidate and stable build tentatively planned for late November.

The headline change restores the programmatic compiler API that 7.0 dropped, which had left anything that embedded the compiler — from Vue's Volar to Svelte, Astro, ts-morph and type-aware linting — stranded on TypeScript 6 for three months.

Rather than revive the old monolithic module, 7.1 splits the API into focused entry points such as `typescript/sync`, `typescript/async`, `typescript/fs` and `typescript/ast`, with previously unstable prefixes now dropped to signal intent.

Editors can derive new state from reusable snapshots of incremental edits without rebuilding the whole program, and the team says the surface will stay backward compatible across all of 7.x once stable.

Content mappers make Vue and Svelte first-class

The beta's most discussed feature is content mappers, a supported plugin point that lets a package hand TypeScript a virtual view of a non-standard file such as a `.vue` or `.svelte` component, with mappings back to the original so errors point at the right line.

Because a mapper runs as a separate process, it executes only when you opt in, and the team warns the flag should be treated like any build plugin.

Vue's language tools are already porting to it: maintainer Johnson Chu has shipped Vue Language Tools v4 alpha on top of content mappers, dropping the separate `vue-tsc` binary in favor of a `@vue/content-mapper` that runs inside `tsc` itself.

The evidence: Directus drops to 3.10 seconds

In a hands-on migration write-up, the Directus admin app — 581 Vue components across 882 TypeScript files — saw type checks fall from 14.19 to 3.10 seconds on tsc 7.1 plus the mapper, a 4.6x speedup over vue-tsc 3.

According to the pack reporting, Microsoft's MUI docs benchmark falls from 22.2 to 11.9 seconds while roughly halving memory, though heavier codebases such as VS Code see closer to 1.2x.

An independent test against NestJS put a 353,000-line check at 2.76 seconds on the beta against 4.95 on 7.0 and 12.42 on the old compiler, while flagging a 7.0 memory regression that 7.1 reverses.

One known issue remains open: Akira Higuchi reported on GitHub that, in a particular editor workflow, saving a mapper's watched configuration file could leave types stale until the language server is restarted.

Language additions and the migration path

The language itself gains import attributes in ambient module declarations, TC39 source phase imports for loading WebAssembly, and a stable es2026 target carrying additions like `Math.sumPrecise()` and `Error.isError()`.

Teams still on TypeScript 5 should move through 6 to 7, and projects using Vue, Svelte or Angular should keep a dual TypeScript 6 and 7 install until their framework tooling ships a 7.1 build — Directus's migration author flagged that adopters will need to run 7.1 in CI alongside an older TypeScript in the editor until Vue tooling stabilizes on the stable release.

Tool and library authors are urged to port to the new entry points now and to flag missing functions through the API status tracker while gaps can still be filled before stable.

The independent numbers make clear the native compiler now sets the bar, with rival type checkers on Hacker News already measuring themselves against tsgo 7.1 beta.

Sources

  1. news.lavx.hu › TypeScript 7.1 Beta Restores Compiler API, Adds First-Class Vue and Svelte Support
  2. infoq.com › TypeScript 7.1 Beta: Restores the Compiler API and Makes Vue and Svelte First-Class

More on Programming