Repository navigation
Conversation
clydin
force-pushed
the
ngp-host-h2-1
branch
2 times, most recently
from
October 29, 2026 22:23
118648c to
4262b7c
Compare
…in the preprocessor The preprocessor recognized `@angular/core` by walking up to the nearest `package.json` named `@angular/core`, which ngtsc never does and which a host without file system access cannot do. Follow ngtsc's rule instead: the internal `angularCoreCompilation` option, falling back to the tsconfig's `_isAngularCoreCompilation`, then to an explicit `r3SymbolsFile`, and otherwise to whether the root `r3_symbols.ts` exports `ITS_JUST_ANGULAR = true` (ngtsc's `isAngularCorePackage`). The `ITS_JUST_ANGULAR` check reads `r3_symbols.ts` through the query engine, so edits to it invalidate dependent analyses. A new pseudo-dependency on the `r3_symbols.ts` root lookup re-runs only the queries that read it when the roots add or remove that file, instead of every query on each root change. Also remove the unused `resolve_to_dts` helper.
clydin
marked this pull request as ready for review
October 30, 2026 01:20
mattrbeck
approved these changes
Oct 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


The preprocessor recognized
@angular/coreby walking up to the nearestpackage.jsonnamed@angular/core, which ngtsc never does and which a host without file system access cannot do. Follow ngtsc's rule instead: the internalangularCoreCompilationoption, falling back to the tsconfig's_isAngularCoreCompilation, then to an explicitr3SymbolsFile, and otherwise to whether the rootr3_symbols.tsexportsITS_JUST_ANGULAR = true(ngtsc'sisAngularCorePackage).The
ITS_JUST_ANGULARcheck readsr3_symbols.tsthrough the query engine, so edits to it invalidate dependent analyses. A new pseudo-dependency on ther3_symbols.tsroot lookup re-runs only the queries that read it when the roots add or remove that file, instead of every query on each root change.Also remove the unused
resolve_to_dtshelper.