Home / Blog / Angular's TypeScript 7-Powered Compiler Enters Beta with…
Tech News

Angular's TypeScript 7-Powered Compiler Enters Beta with Rust-Based

Angular's ngp compiler rewrites analysis in Rust via Oxc, delivering 2×–3× faster cold builds and cutting memory from 2.8 GB to 1.4 GB ahead of Angular 22.

By Dillip Chowdary • Nov 11, 2026 • Source: InfoQ

Angular's TypeScript 7-Powered Compiler Enters Beta with Rust-Based

The Angular team shipped ngp, the Angular Preprocessor, a rearchitected compiler that rewrites the analysis stage of Angular's toolchain in Rust using the Oxc parsing library, clearing the way for TypeScript 7 adoption. Alex Rickabaugh and Mark Techson announced the work on the Angular team blog in late September, shortly after Microsoft shipped TypeScript 7.0, whose Go-based rewrite removed the ts.Transformer API that Angular's ahead-of-time compiler had depended on — a breaking incompatibility covered in detail by InfoQ's report.

This article covers the full technical picture: what ngp replaces, how the three-stage pipeline works, benchmark numbers from real-world codebases, how to start experimenting today, and what compatibility constraints teams must respect before switching away from ngc in production. It is aimed at Angular developers on v20 or later who want to understand what is coming in Angular 22 and how to test it now.

01Why ngc Could Not Cross the TypeScript 7 Boundary

The existing Angular compiler, ngc, wraps tsc and uses the TypeScript Transformer API to turn decorators such as @Component and @Pipe into runtime instructions at build time. TypeScript 7.0's Go-based rewrite, tsgo, removed that API entirely; the Go port offers no cross-language equivalent, and crossing the JavaScript/Go boundary at every file would be prohibitive in practice.

The Angular team's answer was to decouple Angular's compilation from TypeScript's internal APIs entirely and rebuild the analysis layer on Oxc, the VoidZero Rust toolchain that already powers Vite. The team framed this as a partial rewrite rather than a fresh start, preserving the existing TypeScript template compiler for the work TypeScript still needs to own.

02Three-Stage Pipeline Powered by Oxc and Rust

A downstream tool — tsgo, tsrs, esbuild, or Rolldown — handles type-checking and JavaScript emission independently of Angular's analysis stage. The pairing of ngp with tsrs and Rolldown delivered the fastest overall pipeline in benchmarks; tsgo with esbuild was only marginally behind. This architecture means Angular is no longer bottlenecked by any single TypeScript API's availability.

Angular's TypeScript 7-Powered Compiler Enters Beta with Rust-Based
Illustration · Pexels

03Cold-Build and Dev-Server Speed Gains

Advertisement

Tech Pulse Daily

Get tomorrow's pulse first

Join engineers who read Tech Pulse before stand-up. Free, weekday mornings.

MetricBefore (ngc)After (ngp)Source
Cold-build speed (3 projects, 15–1,714 components)baseline2× – 3× fasterNinja Squad benchmark
Peak memory, largest project (1,714 components)2.8 GB1.4 GBNinja Squad benchmark
Dev-server first-page load, 252 components17.4 s10.5 svite-plugin-ngp / push-based.io
Template hot-edit reload, 252 components~2.6 s full reload112 msvite-plugin-ngp / push-based.io
Dev-server first-page load, 5,000 components28.4 s1.6 svite-plugin-ngp / push-based.io

Cédric Exbrayat of Ninja Squad benchmarked the beta across three projects and noted, "This is already very promising, and there are certainly further gains to be made when the team focuses on performance optimization." The 370,000-line commit that landed the bulk of ngp on 8 October included around 56,000 lines of Rust.

04How to Experiment with ngp Today

Teams must be on Angular v20 or later before experimenting. The standard Angular update guide brings projects up to v20; from there, Christopher Holder's vite-plugin-ngp plugin offers an on-demand compilation path for Vite-based setups.

Command
```bash
# Upgrade to Angular v20 or later first
ng update @angular/core @angular/cli

05Install vite-plugin-ngp (prototype, pinned to 22.3.0-next.2)

Holder's plugin compiles Angular files on demand rather than upfront, which is what produced the 10.5-second first-page and 112-millisecond hot-edit results on the Super Productivity codebase (252 components). Holder cautioned that the plugin "is a prototype on a prototype" and is pinned to 22.3.0-next.2, so it is strictly experimental.

06Compatibility Limits and the Path to Angular 22

Production builds must remain on ngc until Angular 22 formally adopts ngp in a minor release. That adoption is gated on TypeScript 7.1 restoring the compiler API that Angular's downstream tooling still requires. Teams running Angular versions below v20 should complete the standard migration to v20 before testing ngp at all.

VoidZero's own experimental Oxc Angular compiler had previously reported roughly a 97-percent improvement on narrower workloads but is now described as "actively seeking maintainers." The Angular team confirmed VoidZero's work influenced ngp's architecture and that the two groups collaborated throughout, with ngp becoming the official forward path rather than a competing project.

Angular's TypeScript 7-Powered Compiler FAQ

What is ngp and why did Angular build it?

ngp, the Angular Preprocessor, rewrites Angular's compiler analysis stage in Rust using Oxc, replacing the ts.Transformer API that TypeScript 7.0's Go-based rewrite removed and that Angular's existing ngc compiler had relied on.

How much faster is ngp than the current Angular compiler?

Ninja Squad's benchmarks across three real-world projects (15 to 1,714 components) measured 2× to 3× faster cold builds, and peak memory on the largest project dropped from 2.8 GB to 1.4 GB.

Can I use ngp in production today?

No. The Angular team recommends staying on ngc for production builds until ngp lands in a formal minor release of Angular 22, which is gated on TypeScript 7.1 restoring the compiler API.

What is vite-plugin-ngp and who built it?

Christopher Holder at push-based.io wrote vite-plugin-ngp to compile Angular files on demand using ngp. It is pinned to Angular 22.3.0-next.2 and is explicitly described as "a prototype on a prototype."

What happened to VoidZero's own Oxc Angular compiler?

VoidZero's experimental Oxc Angular compiler previously reported around a 97-percent improvement on narrow workloads but is now "actively seeking maintainers." The Angular team confirmed the two projects collaborated, and ngp is now the official path forward.

Sources

Dillip Chowdary

Author

Dillip Chowdary

Writes Tech Bytes coverage of AI, engineering, and the tools that actually ship. Editor of Tech Pulse Daily.

Related on Tech Bytes

Advertisement

5-min tech signal

Weekday briefing for engineers who skip the noise.

No spam · Unsubscribe anytime

Advertisement

✈️ CareerPilot

Your AI job-search copilot

Match your resume against live Ashby, Greenhouse & Lever openings — fit scores, job-specific resume optimization and email alerts.

Find matching jobs →

Free Tools

Browse all tools →