From f05937db4d4ddaec05df7df7030b67a00251859b Mon Sep 17 00:00:00 2001 From: Alex Eagle Date: Fri, 8 Dec 2017 11:48:58 -0800 Subject: [PATCH] fix(bazel): don't equate moduleName with fileName (#20895) Fixes broken material build. /cc @jelbourn PR Close #20895 --- packages/bazel/src/ngc-wrapped/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/bazel/src/ngc-wrapped/index.ts b/packages/bazel/src/ngc-wrapped/index.ts index 5ec94a7353..48b07e765f 100644 --- a/packages/bazel/src/ngc-wrapped/index.ts +++ b/packages/bazel/src/ngc-wrapped/index.ts @@ -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.