fix(bazel): don't equate moduleName with fileName (#20895)

Fixes broken material build.
/cc @jelbourn
PR Close #20895
This commit is contained in:
Alex Eagle 2017-12-08 11:48:58 -08:00 committed by Jason Aden
parent d684f55423
commit f05937db4d
1 changed files with 1 additions and 1 deletions

View File

@ -178,7 +178,7 @@ export function compile({allowNonHermeticReads, allDepsCompiledWithBazel = true,
return relativeToRootDirs(importedFilePath, compilerOpts.rootDirs).replace(EXT, '');
};
ngHost.toSummaryFileName = (fileName: string, referringSrcFileName: string) =>
ngHost.fileNameToModuleName(fileName, referringSrcFileName);
relativeToRootDirs(fileName, compilerOpts.rootDirs).replace(EXT, '');
if (allDepsCompiledWithBazel) {
// Note: The default implementation would work as well,
// but we can be faster as we know how `toSummaryFileName` works.