Skip to content

Commit

Permalink
fix(@ngtools/webpack): fix duplicate LAZY_ROUTE_MAP exports (#7107)
Browse files Browse the repository at this point in the history
  • Loading branch information
FrozenPandaz authored and filipesilva committed Jul 26, 2017
1 parent 53ec7d4 commit 0b86640
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/@ngtools/webpack/src/loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -443,9 +443,7 @@ export function _getModuleExports(plugin: AotPlugin,
return exports
.filter(node => {

const identifiers = refactor.findAstNodes(node, ts.SyntaxKind.Identifier, false);

identifiers
const identifiers = refactor.findAstNodes(node, ts.SyntaxKind.Identifier, false)
.filter(node => node.getText() === plugin.entryModule.className);

return identifiers.length > 0;
Expand Down

0 comments on commit 0b86640

Please sign in to comment.