Skip to content

Commit 44e9d9e

Browse files
FrozenPandazalxhub
authored andcommitted
fix(@ngtools/webpack): fix duplicate LAZY_ROUTE_MAP exports (#7107)
1 parent 2a52691 commit 44e9d9e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -443,9 +443,7 @@ export function _getModuleExports(plugin: AotPlugin,
443443
return exports
444444
.filter(node => {
445445

446-
const identifiers = refactor.findAstNodes(node, ts.SyntaxKind.Identifier, false);
447-
448-
identifiers
446+
const identifiers = refactor.findAstNodes(node, ts.SyntaxKind.Identifier, false)
449447
.filter(node => node.getText() === plugin.entryModule.className);
450448

451449
return identifiers.length > 0;

0 commit comments

Comments
 (0)