TypeScript native preview (Go) — 'tsgo' brings ~10x typecheck speed

TypeScriptToolingCompiler

Key update

Microsoft’s TypeScript team published broad previews of a native port of the TypeScript compiler and tooling — a Go-based implementation (distributed as the @typescript/native-preview package and the tsgo executable) that already demonstrates roughly 10x faster type-checks and much lower memory use on large projects. The preview includes an early language-service prototype (VS Code preview integration) and a command-line tsgo that behaves like tsc, but several features (declaration emit, full --build/project-reference support and some downlevel/emit scenarios) remain incomplete in this preview. (devblogs.microsoft.com)

Why it matters

Practically, this changes the cost model for TypeScript at large scale: much faster cold editor startup and type-checks, significantly lower RAM for language servers, and dramatically shorter CI/type-check steps on big monorepos — all of which make iterative development, large-codebase refactors, and editor responsiveness materially better. Because the preview is not yet feature-complete, the immediate, pragmatic workflow is: try npx tsgo or the VS Code preview to measure local improvements; keep the existing typescript (tsc) toolchain in CI/production builds until declaration output, --build, and any emit parity you rely on are confirmed; and test custom transformers, declaration generation, and project-reference builds before switching any production pipelines. The change also signals longer-term impacts for bundlers/transformers and LSP tooling: expect faster editor integrations and lower infrastructure cost for type-heavy services once parity is reached, but plan for a staged migration. (devblogs.microsoft.com)

Source

Read Next