Skip to content

Commit 0b86640

Browse files
FrozenPandazfilipesilva
authored andcommitted
fix(@ngtools/webpack): fix duplicate LAZY_ROUTE_MAP exports (#7107)
1 parent 53ec7d4 commit 0b86640

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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

+1-3
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)