---
title: "An update on Angular’s TypeScript 7-powered Compiler"
description: "Because TypeScript 7 is compiled in Go and does not expose the ts.Transformer API cross-language, Angular is building a new compiler, the Angular Preprocessor (ngp), that decouples Angular compilation from TypeScript's compiler APIs."
url: "https://swe.quest/articles/an-update-on-angular-s-typescript-7-powered-compiler-4e2ff0686fdc5c6c"
canonical: "https://blog.angular.dev/an-update-on-angulars-typescript-7-powered-compiler-9619a35e2b0a"
source: "Angular Blog"
published: "2026-09-25"
difficulty: "medium"
kind: "Deep dive"
reading_minutes: 7
tags: ["compilers","typescript","rust","frontend","build-systems"]
---

# An update on Angular’s TypeScript 7-powered Compiler

A post on [Angular Blog](https://swe.quest/sources/angular.md), published 2026-09-25, 7 min read, Deep dive. Original: [https://blog.angular.dev/an-update-on-angulars-typescript-7-powered-compiler-9619a35e2b0a](https://blog.angular.dev/an-update-on-angulars-typescript-7-powered-compiler-9619a35e2b0a)

## Summary

Because TypeScript 7 is compiled in Go and does not expose the ts.Transformer API cross-language, Angular is building a new compiler, the Angular Preprocessor (ngp), that decouples Angular compilation from TypeScript's compiler APIs. For each source file, ngp emits a .ng.ts file with decorators compiled for runtime and a .ngtypecheck.ts file translating template expressions for TypeScript type-checking, both with source maps and usually kept in memory. It uses a hybrid design: a multithreaded Rust analyzer built on oxc parses and analyzes code, then streams work units to the existing TypeScript template compiler backend, packaged via napi-rs as a native addon with a WASM fallback. Rust and oxc were chosen over Go because no public Go TypeScript parser/AST library exists. Performance gains are not yet benchmarked, and an experimental release is targeted for later this year.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Compilers](https://swe.quest/tags/compilers.md) (Compilers & runtimes)
- [TypeScript](https://swe.quest/tags/typescript.md) (Languages)
- [Rust](https://swe.quest/tags/rust.md) (Languages)
- [Frontend](https://swe.quest/tags/frontend.md) (Web & mobile)
- [Build systems](https://swe.quest/tags/build-systems.md) (Engineering practices)

## Prerequisites

- Angular components and decorators
- TypeScript compiler basics ([easy posts on TypeScript](https://swe.quest/tags/typescript.md?difficulty=easy))
- AST transformations

## Keywords

Angular, TypeScript 7, oxc, ngp, napi-rs, WebAssembly, Vite

## Related posts

- [Node just added TypeScript support. What does that mean for Deno?](https://swe.quest/articles/node-just-added-typescript-support-what-does-that-mean-for-deno-14b91bca00f94e31.md): Deno · 2025-03-06 · Easy · 4 min read · TypeScript, Runtimes & VMs, Developer tools, JavaScript
  Node 22.6 added TypeScript execution via type stripping (stable in 23.6), which replaces annotations with whitespace but does no type checking, does not handle JSX/TSX, and still relies on tsc and a manually managed tsconfig.json.
- [A Gentle Intro to TypeScript](https://swe.quest/articles/a-gentle-intro-to-typescript-acf96e72b2375e24.md): Deno · 2024-06-27 · Medium · 5 min read · TypeScript, Type systems, JavaScript
  TypeScript catches the bugs that JavaScript's dynamic typing and implicit type coercion allow, such as add(1, "2") returning "12", by reporting them at compile time instead of at runtime.
- [Land ahoy: leaving the Sea of Nodes](https://swe.quest/articles/land-ahoy-leaving-the-sea-of-nodes-b461320cb50dc764.md): V8 · 2025-03-25 · Hard · 25 min read · Compilers, Runtimes & VMs, JavaScript, WebAssembly
  V8 is replacing Sea of Nodes in its Turbofan optimizing compiler with Turboshaft, a traditional control-flow-graph IR.
- [Deno 2.3: Improved deno compile, local npm packages, and more](https://swe.quest/articles/deno-2-3-improved-deno-compile-local-npm-packages-and-more-8da91030a8445369.md): Deno · 2025-05-01 · Medium · 11 min read · JavaScript, TypeScript, Runtimes & VMs, Developer tools, Observability
  Deno 2.3 lets deno compile bundle programs that use FFI and Node native add-ons, adds --include/--exclude control over embedded files, and exposes Deno.build.standalone to detect compiled binaries.
- [Migrating from Apollo Tooling to GraphQL Codegen at Yelp](https://swe.quest/articles/migrating-from-apollo-tooling-to-graphql-codegen-at-yelp-732b107d437979cc.md): Yelp Engineering · 2026-07-16 · Medium · 11 min read · GraphQL, TypeScript, Build systems, Refactoring & migrations, Open source
  Yelp replaced the deprecated apollo-tooling codegen with GraphQL Codegen across a 500+ package React/TypeScript monorepo without requiring developers to change imports or queries.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
