TypeScript 7.1 Beta introduces modular APIs and ES2026 support
Published: October 20, 2026
Microsoft released TypeScript 7.1 Beta with new native compiler APIs and JavaScript language support. Try the preview with:
npm install -D typescript@betaWhat changed
--target es2026and--lib es2026are now supported as stable options, with updated standard-library declarations.- New API entry points include
typescript/sync,typescript/async,typescript/fs, andtypescript/ast.APIandProgramobjects must be disposed, for example withusing. - Source-phase imports (
import sourceandimport.source()) support module-source objects, including WebAssembly use cases, with appropriate--moduleandesnextsettings. - Content mappers can expose embedded TypeScript in files such as
.vueand.svelte. Command-line execution requires--runExternalCode. - Microsoft reports faster builds and lower memory use than TypeScript 7.0 in its published benchmarks.
Availability
This is a beta, not a stable release. Check framework and tooling compatibility before upgrading. The import-attribute support in ambient modules was covered in a separate news article.
Source
Read the official announcement: Announcing TypeScript 7.1 Beta.