6 min read
|
Saved February 14, 2026
|
Copied!
Do you care about this?
The TypeScript team is porting the compiler and language service to native code for improved performance. Significant features are now available in the native previews, including code completions and faster load times. The new compiler has also achieved major parity with version 5.9, allowing developers to confidently use it for type-checking.
If you do, here's more
The TypeScript team is making significant progress with its transition to native code, branded as “Project Corsa” and set to culminate in TypeScript 7.0. This shift aims to enhance performance, memory usage, and parallel processing. Developers can now access native previews that are fast and stable, with essential features like auto-imports, code completions, and go-to definitions operational. These functionalities are crucial for daily use, addressing previous limitations that deterred adoption among developers. The team has also revamped the language service to improve reliability and responsiveness.
The new TypeScript compiler is available as a nightly preview under the package name `@typescript/native-preview`. It can be installed through npm, and it offers a command, `tsgo`, that runs alongside the existing `tsc` command. The type-checking capabilities of TypeScript 7 are nearly complete, with 20,000 test cases validating its accuracy against TypeScript 5.9. Users can expect a dramatic speed increase, with some projects experiencing up to a 10-fold reduction in build times compared to the previous compiler versions.
However, using TypeScript 7 comes with caveats. The new release will eliminate certain deprecated features from TypeScript 6.0, such as the `--strict` flag and specific target settings. This means projects relying on these deprecated features will require adjustments to their configurations. The team is developing a tool called `ts5to6` to assist in automatically updating configurations, though it currently only addresses certain settings like `baseUrl` and `rootDir`. The JavaScript emit pipeline remains a work in progress, which may limit the immediate usability of the new compiler for some developers.
Questions about this article
No questions yet.