ng-packagr
Version:
Compile and package Angular libraries in Angular Package Format (APF)
19 lines (18 loc) • 874 B
TypeScript
/**
* Registers the absolute specifiers of libraries that have been processed by ngcc. This cache is
* reused across all entry-points of a package, so module requests across the entry-points can
* determine whether invoking ngcc is necessary.
*
* The cost of invoking ngcc for an entry-point that has already been processed is limited due to
* a fast path in ngcc, however even in this fast-path does ngcc scan the entry-point to determine
* if all dependencies have been processed. This cache allows to avoid that work, as entry-points
* are processed in batches during which the `node_modules` directory is not mutated.
*/
export declare class NgccProcessingCache {
private readonly processedModuleNames;
constructor();
private populate;
hasProcessed(moduleName: string): boolean;
markProcessed(moduleName: string): void;
clear(): void;
}