cd /news/developer-tools/angular-s-typescript-7-powered-compi… · home › topics › developer-tools › article
[ARTICLE · art-167493] src=infoq.com ↗ pub= topic=developer-tools verified=true sentiment=↑ positive

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

The Angular team released a beta of the Angular Preprocessor (ngp), a Rust-based rewrite of the compiler's analysis stage built on VoidZero's Oxc toolchain, to replace the `ts.Transformer` API that Microsoft's Go-based TypeScript 7.0 removed. The bulk of ngp landed on 8 October in a single commit of more than 370,000 lines, around 56,000 of them Rust, and Ninja Squad's Cédric Exbrayat benchmarked the beta across three projects of 15 to 1,714 components, measuring a 2x to 3x speedup on cold builds and memory use on the largest project falling from 2.8 GB to 1.4 GB. Christopher Holder's prototype `vite-plugin-ngp`, pinned to `22.3.0-next.2`, cut first-page dev-server time on the 252-component Super Productivity codebase to 10.5 seconds from 17.4 for `ng serve`, and to 1.6 seconds from 28.4 on a generated 5,000-component app.

by read3 min views2 publishedNov 11, 2026
Angular's TypeScript 7-Powered Compiler Enters Beta with Rust-Based Preprocessor
Image: source

The Angular team has shared details of a new version of its compiler, the Angular Preprocessor (ngp), which rewrites the analysis stage of the toolchain in Rust to clear 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 depends on.

The existing compiler, ngc, wraps tsc and uses the Transformer API to turn decorators such as @Component and @Pipe into runtime instructions. The Go port offers no cross-language equivalent, and crossing the JS/Go boundary at every file would be prohibitive. The Angular team's answer is to decouple compilation from TypeScript's APIs and rebuild it on Oxc, the VoidZero Rust toolchain already powering Vite. The team pointed to the plan on X, framing it as a partial rewrite rather than a fresh start.

ngp runs in three stages. A Rust frontend using Oxc analyses files in parallel to discover Angular declarations and resolve metadata. The existing TypeScript template compiler then emits two artefacts, a runtime file containing the transformed component and a .ngtypecheck.ts file holding the Type Check Block (TCB) for template type-checking. Finally a downstream tool, whether tsgo, tsrs, esbuild or Rolldown, handles type-checking and JavaScript emission independently.

The bulk of ngp landed on 8 October in a single commit of more than 370,000 lines, around 56,000 of them Rust. Cédric Exbrayat of Ninja Squad benchmarked the beta against three projects ranging from 15 to 1,714 components and measured a 2x to 3x speedup on cold builds, with memory use on the largest project falling from 2.8 GB to 1.4 GB. Pairing ngp with tsrs and Rolldown gave the fastest pipeline, with tsgo and esbuild only marginally slower. They concluded there is further gains to be made:

This is already very promising, and there are certainly further gains to be made when the team focuses on performance optimization.

Christopher Holder at push-based.io took a different tack, writing vite-plugin-ngp to compile Angular files on demand. On the Super Productivity codebase (252 components), the dev server reached the first page in 10.5 seconds against 17.4 for ng serve, with template edits applying in 112 milliseconds rather than a 2.6 second full reload. On a generated 5,000-component app the gap widened to 1.6 seconds against 28.4. Holder cautioned that the plugin "is a prototype on a prototype" pinned to 22.3.0-next.2.

On Reddit, a number of developers are excited about the update and write up, with one commenting:

Read the whole article. Impressive. The Angular team surpassed my expectations!

VoidZero's own experimental Oxc Angular compiler, covered by InfoQ in April, reported a roughly 97% improvement on narrower workloads but is now described as "actively seeking maintainers". The Angular team confirmed VoidZero's work influenced the architecture and that the two groups have been collaborating, with ngp becoming the official path.

Teams on earlier Angular versions should first run the standard update guide to reach v20 or later. Adoption of ngp is expected to land in a minor release of Angular 22 once TypeScript 7.1 restores the compiler API; until then production builds should stay on ngc.

Angular is Google's open-source, TypeScript-first web framework, widely adopted across enterprise applications and built around standalone components and signal-based reactivity.

── more in #developer-tools 4 stories · sorted by recency
── more on @angular 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/angular-s-typescript…] indexed:0 read:3min 2026-11-11 · —