Skip to content

Commit

Permalink
fix(@ngtools/webpack): search recursively for entry module (#3708)
Browse files Browse the repository at this point in the history
  • Loading branch information
juristr authored and hansl committed Dec 28, 2016
1 parent 78ee47c commit bb748f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@ngtools/webpack/src/entry_resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export function resolveEntryModuleFromMain(mainPath: string,
program: ts.Program) {
const source = new TypeScriptFileRefactor(mainPath, host, program);

const bootstrap = source.findAstNodes(source.sourceFile, ts.SyntaxKind.CallExpression, false)
const bootstrap = source.findAstNodes(source.sourceFile, ts.SyntaxKind.CallExpression, true)
.map(node => node as ts.CallExpression)
.filter(call => {
const access = call.expression as ts.PropertyAccessExpression;
Expand Down

0 comments on commit bb748f2

Please sign in to comment.