TypeScript 7.1 Beta Restores Compiler API for Vue and Svelte
By @sharedot · · 6 pages
- Programming
- Typescript
- Vue
- Svelte
- Compiler
TypeScript 7.1 beta restores the compiler API, adds Vue and Svelte mappers, and delivers up to 4.6x faster type checks.
The API is back, split into focused entry points
Microsoft released TypeScript 7.1 Beta on Oct. 20, 2026, the first update to the Go-based native compiler that debuted as TypeScript 7.0 in July, and the release finally hands tool authors a programmatic compiler API again.
For three months anything that embedded the compiler — Vue's Volar, Svelte, Astro, ts-morph and type-aware linting — was stranded on TypeScript 6 after 7.0 dropped the API.
Rather than revive the old monolithic module, 7.1 splits it into focused entry points such as typescript/sync, typescript/async, typescript/fs and typescript/ast, with previously unstable prefixes dropped to signal intent.
The client also models incremental edits through reusable snapshots, so an editor can derive new state from an old one without rebuilding the world, 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
Sitting on top of the restored API is the beta's most discussed feature: 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: 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: up to 4.6x faster type checks
The benchmark numbers are striking. 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.
Microsoft's MUI docs benchmark falls from 22.2 to 11.9 seconds while roughly halving memory, though heavier codebases like 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 reversing a 7.0 memory regression.
One known issue remains open: Akira Higuchi reported on GitHub that saving a mapper's watched configuration file in a particular editor workflow could leave types stale until the language server restarts.
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().
The stakes are real for teams with framework tooling: adopting teams may need to run 7.1 in CI alongside an older TypeScript in the editor until Vue tooling stabilizes on the stable release.
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.
Tool and library authors are urged to port to the new entry points now and flag missing functions through the API status tracker while gaps can still be filled before stable — with a release candidate tentatively planned for late November.