Fundamentals 3 min read

Why TypeScript 6.0 Beta Switches to Go: Faster Builds and Lower Memory

Microsoft announced the TypeScript 6.0 beta, the last version written in JavaScript, and revealed that the compiler will be re‑implemented in Go to improve editor startup, reduce build times, and cut memory usage, with new default compiler options and tsconfig behavior changes.

21CTO
21CTO
21CTO
Why TypeScript 6.0 Beta Switches to Go: Faster Builds and Lower Memory

Microsoft recently announced the TypeScript 6.0 beta, which will be the final release of the language written in JavaScript. Starting in 2025 the team is rewriting the native implementation of TypeScript in Go to improve editor startup time, reduce build time, and lower memory consumption.

TypeScript chief architect Anders Hejlsberg explained that the JavaScript‑based implementation, while offering many benefits, has long caused performance and scalability challenges because the JavaScript runtime is optimized for UI and browser workloads rather than the compute‑intensive tasks of a compiler.

Product manager Daniel Rosenwasser added in a blog post that moving the compiler to Go allows the project to take advantage of native code speed and shared‑memory multithreading.

The team says TypeScript 6.0 will serve as a bridge between the current 5.9 release and the upcoming 7.0 version, laying the groundwork for future features.

Several compiler defaults have changed in this preview: strict defaults to

true
module

defaults to

esnext
target

defaults to the current year’s ECMAScript version noUncheckedSideEffectImports defaults to

true
libReplacement

defaults to false In addition, the tsconfig.json handling has been updated: the default rootDir is now the directory containing the configuration file rather than being inferred from the common ancestor of all non‑declaration input files.

TypeScriptJavaScriptcompilerprogramming languagesBeta
21CTO
Written by

21CTO

21CTO (21CTO.com) offers developers community, training, and services, making it your go‑to learning and service platform.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.