Microsoft has announced a major architectural overhaul for TypeScript, moving away from its traditional setup and embracing a new, high-performance direction. Previously, the TypeScript compiler (tsc
) was written in TypeScript itself, compiled to JavaScript, and executed within Node.js. That’s about to change. Microsoft is now transitioning to a native compiler for TypeScript, written in Go. This move marks a pivotal shift in how TypeScript will be compiled going forward, offering a significant performance leap, especially for large-scale projects.
The performance improvements are striking. Microsoft shared that compiling the massive Visual Studio Code codebase—about 1.5 million lines—previously took around 78 seconds. With the new native Go-based compiler, that process has been reduced to just 7.5 seconds. This tenfold speed increase opens the door to deeper integration with development tools and environments. For example, the new compiler could eventually function like .NET’s Roslyn, enabling features like real-time debugging, dynamic refactoring, and tighter integration with AI tools such as GitHub Copilot.
One of the core benefits of moving to a native compiler is its ability to offer significantly faster and more responsive developer tools. Language servers that power features like syntax highlighting, bracket matching, and semantic analysis will benefit greatly. Faster compiles mean better real-time code analysis and more precise autocompletions via tools like IntelliSense. With support for the Language Server Protocol (LSP) being added, these improvements will also extend to a wider range of editors beyond Visual Studio Code, increasing TypeScript’s accessibility across different development environments.
Alongside the speed gains, Microsoft is also seeing a dramatic drop in memory consumption. By eliminating the just-in-time runtime overhead of Node.js, the new compiler already uses 50% less memory—and that’s before further optimization work. This is particularly important in the age of cloud-based development environments like GitHub Codespaces and Azure Dev Spaces, where every megabyte matters. A more lightweight, resource-efficient TypeScript compiler will help teams manage costs and improve the responsiveness of their dev environments, especially for complex, enterprise-grade applications.