Urgent.News

600+ sources. One page. See who else covered it.

Editions

Tech

Microsoft Releases TypeScript 7.0 with a Native Go Compiler, Delivering 10x Faster Builds

Microsoft has released TypeScript 7.0, featuring a native compiler that improves build speeds by 8x to 12x. Notable performance enhancements were evidenced in real codebases. The version lacks a stable programmatic API, anticipated in 7.1. Transitioning includes a compatibility package for existing tooling, and TypeScript remains an open-source project. By Daniel Curtis

Abstract editorial illustration

Microsoft has unveiled TypeScript 7.0, the first stable release of the programming language to incorporate its native compiler, a Go-based adaptation of the widely-used TypeScript toolset. The native port project, initially announced in March 2025, has gained significant traction, with the @typescript/native-preview package achieving over 8.5 million weekly downloads.

The 7.0 release integrates the new tsc executable, which installs seamlessly through traditional npm aliases, as compatibility is ensured via the @typescript/typescript6 package. Performance improvements are showcased through benchmark results, with VS Code source full builds reducing from 125.7 seconds to 10.6 seconds, an 11.9x enhancement, and aggregate memory usage declining by approximately 18 percent.

Enhanced editor experiences stem from the integration of the Language Server Protocol and multi-threaded tooling. The new compiler delivers a significant speed boost for CI type-checking, slashing build times from about 7.5 minutes to 1.25 minutes for Slack engineers. Additionally, the parallelism feature can be adjusted using --checkers and --builders flags, or disabled entirely with --singleThreaded for resource-constrained environments.

Despite the compiler's impressive gains, TypeScript 7.0 currently lacks a stable programmatic API, expected in the upcoming 7.1 release, which would make it compatible with tooling like typescript-eslint and frameworks such as Vue, Svelte, Astro, MDX, and Angular. Notably, projects utilizing webpack loaders will have to wait for the API support in the upcoming 7.1 version.

Microsoft has addressed the transition period by releasing the @typescript/typescript6 package, ensuring compatibility by re-exporting the 6.0 API through npm aliases. To support a smooth migration, TypeScript 7.0 enforces deprecations as hard errors, with strict and esnext set as the default configurations. The team highlights that TypeScript 7.0 retains full type-checking while narrowing the speed gap, differentiating itself from faster tools like esbuild, swc, and Biome, which perform type-checking without verification.

The team has shifted to a faster release cycle, with future releases anticipated every three to four months, focusing on the eagerly awaited API enhancements.

Written by urgent.news from InfoQ's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at infoq.com →

More in Tech

More from Monday 3 August →