We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5bdbed commit b7f8581Copy full SHA for b7f8581
packages/compiler-cli/src/ngtools_impl.ts
@@ -149,8 +149,13 @@ function _extractLazyRoutesFromStaticModule(
149
return acc;
150
}, []);
151
152
- const importedSymbols = ((moduleMetadata.imports || []) as any[])
153
- .filter(i => i instanceof StaticSymbol) as StaticSymbol[];
+ const importedSymbols =
+ ((moduleMetadata.imports || []) as any[])
154
+ .filter(i => i instanceof StaticSymbol || i.ngModule instanceof StaticSymbol)
155
+ .map(i => {
156
+ if (i instanceof StaticSymbol) return i;
157
+ return i.ngModule;
158
+ }) as StaticSymbol[];
159
160
return importedSymbols
161
.reduce(
0 commit comments