fix(compiler): make .ngsummary.json files idempotent (#21448)

Fixes: #21432

PR Close #21448
This commit is contained in:
Chuck Jazdzewski
2018-01-10 09:55:03 -08:00
committed by Alex Eagle
parent 6a97b5b722
commit a931a419fa
5 changed files with 18 additions and 1 deletions

View File

@ -488,6 +488,10 @@ export class TsCompilerAotCompilerTypeCheckHostAdapter implements ts.CompilerHos
return assert(this.context.readFile(filePath));
}
getOutputName(filePath: string): string {
return path.relative(this.getCurrentDirectory(), filePath);
}
private hasBundleIndex(filePath: string): boolean {
const checkBundleIndex = (directory: string): boolean => {
let result = this.flatModuleIndexCache.get(directory);