Files
angular/packages/compiler-cli/preprocessor
Andrew Scott b64e8b591e refactor(compiler-cli): attribute NgModule scope queries in perf summaries
In normal perf tracing mode, `ngp.rust.Summary` records top-5 `slowest` entries with `file` paths read from each query span's `file` field. That field was populated from `QueryKey::file_id()`, which returns `None` for `NgModuleExportsScope(ReferenceId)` and `NgModuleImportsScope(ReferenceId)`, leaving their `slowest` entries without file paths unless detail mode was enabled.

Add `QueryKey::perf_file_id()` to return `Some(reference_id.file)` for NgModule scope queries as well, and use it in `QueryEngine::execute` when creating the perf span. Keeping `QueryKey::file_id()` unchanged avoids marking NgModule files dirty or emitting them in `invalidatedPaths` when a downstream dependent evicts a cached scope key.

(cherry picked from commit 7b50ce3be2)
2026-11-18 18:11:41 +00:00
..

Rust-based Compiler Preprocessor

Caution

Prototype — External Contributions Not Accepted

The Rust-based compiler preprocessor code in this directory is an early-stage prototype under active development by the Angular team.

We are not accepting issues, bug reports, feature requests, or pull requests for this package from external contributors at this time. Any issues or PRs opened for this code will be closed.

Overview

This directory contains a native AST analysis preprocessor and typecheck block (TCB) generation pipeline designed for high-performance Angular compilation and developer tooling integration. It combines Rust-based AST analysis (ng-analyze) using oxc with a TypeScript-based typechecking coordination layer.