fix(compiler-cli): import routing module with forRoot (#16438)
This commit is contained in:
		
							parent
							
								
									ea2b24fb4e
								
							
						
					
					
						commit
						1eba623d12
					
				| @ -149,8 +149,13 @@ function _extractLazyRoutesFromStaticModule( | |||||||
|         return acc; |         return acc; | ||||||
|       }, []); |       }, []); | ||||||
| 
 | 
 | ||||||
|   const importedSymbols = ((moduleMetadata.imports || []) as any[]) |   const importedSymbols = | ||||||
|                               .filter(i => i instanceof StaticSymbol) as StaticSymbol[]; |       ((moduleMetadata.imports || []) as any[]) | ||||||
|  |           .filter(i => i instanceof StaticSymbol || i.ngModule instanceof StaticSymbol) | ||||||
|  |           .map(i => { | ||||||
|  |             if (i instanceof StaticSymbol) return i; | ||||||
|  |             return i.ngModule; | ||||||
|  |           }) as StaticSymbol[]; | ||||||
| 
 | 
 | ||||||
|   return importedSymbols |   return importedSymbols | ||||||
|       .reduce( |       .reduce( | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user