fix(compiler-cli): support extendedConfigCache in readConfiguration - #71034
Merged
Merged
Conversation
alan-agius4
force-pushed
the
compiler-extended-config-cache
branch
from
September 29, 2026 07:22
25951b4 to
1d9ef6c
Compare
alan-agius4
force-pushed
the
compiler-extended-config-cache
branch
2 times, most recently
from
September 29, 2026 09:06
5d95eaf to
cf16f42
Compare
Pass `extendedConfigCache` to `ts.parseJsonConfigFileContent` and consult the cache in `readConfigFile` when reading configuration files. In Angular CLI watch mode, re-reading and re-parsing extended tsconfig files on every file change causes unnecessary disk I/O and CPU overhead. Reusing TypeScript's `extendedConfigCache` avoids adding extended config files to watchers and eliminates redundant configuration parsing on rebuilds. Additionally, simplify `readConfiguration` by invoking `ts.parseJsonConfigFileContent` before `readAngularCompilerOptions`, caching merged `angularCompilerOptions` on `extendedConfigCache` entries, and utilizing the resolved `extendedConfigPath` to bypass redundant module resolution.
alan-agius4
force-pushed
the
compiler-extended-config-cache
branch
from
September 29, 2026 09:12
cf16f42 to
20b6888
Compare
JeanMeche
approved these changes
Sep 29, 2026
Contributor
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.
Pass
extendedConfigCachetots.parseJsonConfigFileContentand consult the cache inreadConfigFilewhen reading configuration files.In Angular CLI watch mode, re-reading and re-parsing extended tsconfig files on every file change causes unnecessary disk I/O and CPU overhead. Reusing TypeScript's
extendedConfigCacheavoids adding extended config files to watchers and eliminates redundant configuration parsing on rebuilds.Additionally, simplify
readConfigurationby invokingts.parseJsonConfigFileContentbeforereadAngularCompilerOptions, caching mergedangularCompilerOptionsonextendedConfigCacheentries, and utilizing the resolvedextendedConfigPathto bypass redundant module resolution.Related to angular/angular-cli#34192