Skip to content

Commit 7ccf35b

Browse files
juristrMRHarrison
authored andcommitted
fix(@ngtools/webpack): search recursively for entry module (angular#3708)
1 parent 12c1a00 commit 7ccf35b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@ngtools/webpack/src/entry_resolver.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ export function resolveEntryModuleFromMain(mainPath: string,
130130
program: ts.Program) {
131131
const source = new TypeScriptFileRefactor(mainPath, host, program);
132132

133-
const bootstrap = source.findAstNodes(source.sourceFile, ts.SyntaxKind.CallExpression, false)
133+
const bootstrap = source.findAstNodes(source.sourceFile, ts.SyntaxKind.CallExpression, true)
134134
.map(node => node as ts.CallExpression)
135135
.filter(call => {
136136
const access = call.expression as ts.PropertyAccessExpression;

0 commit comments

Comments
 (0)