perf(ngcc): cache parsed tsconfig between runs (#37417)
This commit will store a cached copy of the parsed tsconfig that can be reused if the tsconfig path is the same. This will improve the ngcc "noop" case, where there is no processing to do, when the entry-points have already been processed. Previously we were parsing this config every time we checked for entry-points to process, which can take up to seconds in some cases. Resolves #36882 PR Close #37417
This commit is contained in:

committed by
atscott

parent
6a0d2ed6c8
commit
f9daa136c3
@ -12,7 +12,7 @@ import {AsyncNgccOptions, SyncNgccOptions} from './src/ngcc_options';
|
||||
|
||||
export {ConsoleLogger} from './src/logging/console_logger';
|
||||
export {Logger, LogLevel} from './src/logging/logger';
|
||||
export {AsyncNgccOptions, NgccOptions, SyncNgccOptions} from './src/ngcc_options';
|
||||
export {AsyncNgccOptions, clearTsConfigCache, NgccOptions, SyncNgccOptions} from './src/ngcc_options';
|
||||
export {PathMappings} from './src/path_mappings';
|
||||
|
||||
export function process<T extends AsyncNgccOptions|SyncNgccOptions>(options: T):
|
||||
|
Reference in New Issue
Block a user