Angular ngp Moves Analysis to Rust but Stays Experimental
Angular ngp moves compiler analysis to Rust for TypeScript 7 compatibility; I'd test build speed and template diagnostics before changing production tooling.
- Topic
- Web
- Reading time
- 7 min
- Length
- 1,464 words
- Published
- Nov 11, 2026
09:34 pm IST
In this article
- Why does Angular need a different compiler pipeline?
- Angular ngp separates analysis, templates, and emission
- The benchmarks measure different kinds of waiting
- Preparing an Angular repository for an ngp trial
- Bring the existing Angular baseline forward first
- Record the current build and feedback loop
- Test diagnostics as deliberately as successful builds
- Keep the prototype out of the release path
- Faster compilation does not establish production readiness
Angular ngp moves Angular's analysis stage to Rust using Oxc. The new compiler pipeline prepares the framework for TypeScript 7, but it does not rewrite the existing template compiler. It is still experimental. I'd keep production builds on ngc: adoption is expected in an Angular 22 minor release, and that depends on TypeScript 7.1 restoring the compiler API.
The language switch isn't the part that interests me most. It's the boundary: Angular's framework-specific work becomes separate from downstream type-checking and JavaScript emission. I think that architectural change is worth understanding now, even though I wouldn't turn it into a production migration ticket yet. Those are two different decisions.
Why does Angular need a different compiler pipeline?
The existing Angular compiler, ngc, wraps tsc and uses the TypeScript Transformer API to turn decorators such as @Component and @Pipe into runtime instructions. That integration point is the problem. TypeScript 7.0's Go-based rewrite removed the API that Angular's ahead-of-time compiler depended on.
There is no equivalent cross-language interface in the Go implementation. Crossing between JavaScript and Go for every file would be prohibitively expensive, too. Angular's response is a partial compiler rewrite around Oxc, the VoidZero Rust toolchain already powering Vite.
I read this primarily as separating dependencies, not as a declaration that every compiler stage now belongs in Rust. The TypeScript template compiler stays. The analysis frontend changes. That's the distinction I'd keep in view during an evaluation, because it narrows the questions I need to answer: how declarations are discovered, how metadata is resolved, what gets generated, and how that output reaches downstream tools.
Angular ngp separates analysis, templates, and emission
There are three stages in the new pipeline. A Rust frontend using Oxc first analyzes files in parallel, discovers Angular declarations, and resolves metadata. The existing TypeScript template compiler then produces two files: a runtime file containing the transformed component, and a .ngtypecheck.ts file containing the Type Check Block, or TCB, used for template type-checking.
Type-checking and JavaScript emission happen independently in downstream tooling. The options include tsgo, tsrs, esbuild, and Rolldown. I wouldn't take that list to mean that every tool can do every other tool's job. The useful change is more specific: Angular's analysis no longer has to sit inside the old Transformer API arrangement.
For me, that separation is the part of the announcement likely to matter beyond the immediate speed gains. Faster analysis is welcome. I also want a framework compiler that can adapt when the TypeScript tooling around it changes. Still, a cleaner boundary doesn't prove an easier migration, and I'd want end-to-end correctness demonstrated rather than inferred from the architecture.
The benchmarks measure different kinds of waiting
Cédric Exbrayat of Ninja Squad benchmarked the beta across three projects, ranging from 15 to 1,714 components. Cold builds improved by 2× to 3×, while memory usage on the largest project fell from 2.8 GB to 1.4 GB. The fastest combination was ngp, tsrs, and Rolldown. The tsgo and esbuild combination was only marginally slower.
Useful results, but I'd keep the workloads attached to the numbers whenever discussing them. They don't promise that every Angular repository will build three times faster. They also don't mean that an application compiled faster will respond faster once someone opens it in a browser.
Development feedback is a different experiment. Christopher Holder at push-based.io built vite-plugin-ngp to compile Angular files on demand. On Super Productivity, which has 252 components, the first page arrived in 10.5 seconds instead of the 17.4 seconds needed with ng serve. Template edits applied in 112 milliseconds rather than triggering a 2.6-second full reload. That's a different kind of waiting from a cold build.
On a generated application with 5,000 components, the first-page comparison was 1.6 seconds against 28.4 seconds. I'd leave that result separate from the cold-build figures, however tempting a single speedup headline might be. Compiling on demand during development and completing a cold build answer different questions; combining them would obscure what was actually measured.
I'd use the same discipline here as with storage savings versus precision: decide which benefit matters, then check what changed alongside it. In a compiler trial, I want separate measurements for complete builds and the edit-and-check loop. Otherwise, I can't tell which part of the working day the change would help.
Preparing an Angular repository for an ngp trial
I'd keep the trial away from the production build path. The question is whether this architecture suits the repository in front of me, not whether I can turn somebody else's promising benchmark into a dependency for the next release. Keeping that distinction explicit would be part of the trial.
Bring the existing Angular baseline forward first
For a repository on an earlier Angular version, I'd start with the standard update guide and reach v20 or later before experimenting. That upgrade deserves its own change, review, and acceptance criteria. I wouldn't mix a framework migration and a compiler replacement into one branch and then try to work out which change caused a problem.
The standard update command is:
ng update @angular/core @angular/cli
That command isn't a complete migration procedure. I'd follow the update guide for the repository's actual starting version, then make sure the existing ngc build and the application's usual checks pass on the updated baseline. Only after that would I introduce the experimental compiler. I want a working baseline to compare against, not two migrations to untangle.
Record the current build and feedback loop
For the baseline, I'd record a clean build, memory usage, and the time to the first usable development page. I'd record a representative template edit separately. Those measurements need to stay distinct so I can tell whether ngp helps release preparation, daily editing, or both, rather than just reporting that something got faster.
Each comparison would use the same machine and a comparable repository state. For an editorial interface like the tools I work on, my choice would be an interaction-heavy editing screen, not just a small demonstration page. To be clear, that's the workload I'd propose for a test. It isn't a claim that I've run ngp on our newsroom systems.
Test diagnostics as deliberately as successful builds
The dedicated template type-checking file is a reason to test broken templates deliberately, not just check that valid ones compile. I'd include an incorrect binding and a component whose metadata matters to the application. Then I'd compare the old and experimental paths: do both catch the intended mistake, and is the diagnostic useful to the maintainer who has to fix it?
The generated application would also go through the team's normal acceptance process. A successful compiler exit is necessary. I wouldn't accept it as the entire correctness test, though, or let that single result stand in for checking the application itself.
Keep the prototype out of the release path
The experimental Vite integration is pinned to 22.3.0-next.2. Holder's description, “a prototype on a prototype,” is a warning I'd keep in the trial notes. I wouldn't present the plugin as a supported replacement for the production build just because the development feedback numbers are appealing.
On my branch, the ngc release path would remain intact, with a record of exactly which experimental combination I tested. I'd apply the same caution to release pipeline changes. Experimental tooling shouldn't quietly become responsible for shipping an application while everyone still thinks they're only evaluating it.
Faster compilation does not establish production readiness
Adoption is expected in an Angular 22 minor release, gated on TypeScript 7.1 restoring the compiler API. Expected is the word I'd underline here. It doesn't mean that gate has already cleared. As of November 11, 2026, my production recommendation would remain straightforward: stay on ngc.
I'd also keep separate the results from different Rust-based Angular compiler efforts. VoidZero's separate experimental Oxc Angular compiler reported roughly a 97% improvement on narrower workloads and is now actively seeking maintainers. That work influenced ngp, and the groups collaborated, but ngp is the official path forward. The earlier results aren't interchangeable with ngp's benchmarks, even though the work is connected.
Scope is my other reservation. These measured gains concern builds and development tooling; they don't establish improvements to application rendering, network requests, or backend latency. If my complaint were that an application feels slow after loading, I'd investigate that problem directly. I wouldn't expect a compiler migration to resolve it simply because compilation itself became faster.
If build time, memory use, or template feedback were a meaningful maintenance cost, I'd make room for an isolated ngp trial. If the current workflow were comfortable and the team had no room for experimental tooling, I'd wait for formal adoption instead. The architecture deserves attention now, but I'd leave the production switch alone until there's both a supported release and evidence from the repository that will actually ship.
Sources
https://www.infoq.com/news/2026/11/angular-compiler-rust-typescript/
This is the source this article is based on. Many articles on this blog are drafted with AI and checked against their source automatically; the editorial policy explains how, and how to report a mistake.
Frequently asked
Can I replace ngc with ngp in production now?
No. Production builds should remain on ngc. Adoption is expected in an Angular 22 minor release and depends on TypeScript 7.1 restoring the compiler API.
Do I need Angular v20 before testing ngp?
Teams on earlier Angular versions should follow the standard update guide to reach v20 or later before experimenting. I would complete that baseline upgrade separately from the compiler trial.
Will ngp make my Angular application faster for users?
The reported results measure cold builds, compiler memory usage, development startup, and template-edit feedback. They do not establish faster runtime behavior for the application.
Is vite-plugin-ngp the official production migration path?
It is an experimental on-demand compilation plugin built by Christopher Holder, pinned to 22.3.0-next.2 and described as “a prototype on a prototype.” I would use it only for an isolated evaluation.
Weekly newsletter
Liked this? Get the next one by email
One short email a week with new articles on React, Node.js, TypeScript and AI engineering. No spam. Unsubscribe in one click.
Further reading
Related tutorials from ByteMuni, my developer publication.