diff --git a/packages/compiler-cli/ngcc/src/host/commonjs_host.ts b/packages/compiler-cli/ngcc/src/host/commonjs_host.ts index 1818ede3d8..90ffe5d07a 100644 --- a/packages/compiler-cli/ngcc/src/host/commonjs_host.ts +++ b/packages/compiler-cli/ngcc/src/host/commonjs_host.ts @@ -95,7 +95,7 @@ export class CommonJsReflectionHost extends Esm5ReflectionHost { const helperCallsMap = getOrDefault(this.topLevelHelperCalls, helperName, () => new Map()); calls.push(...getOrDefault( helperCallsMap, sourceFile, - () => sourceFile.statements.map(statement => this.getHelperCall(statement, helperNames)) + () => sourceFile.statements.map(statement => this.getHelperCall(statement, [helperName])) .filter(isDefined))); }); return calls;