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 466dfb6 commit 97368d8Copy full SHA for 97368d8
packages/@ngtools/webpack/src/transformers/export_lazy_module_map.ts
@@ -20,7 +20,7 @@ export function exportLazyModuleMap(
20
let [, moduleName] = loadChildrenString.split('#');
21
let modulePath = lazyRoutes[loadChildrenString];
22
23
- if (modulePath.endsWith('.ngfactory.ts')) {
+ if (modulePath.match(/\.ngfactory\.[jt]s$/)) {
24
modulePath = modulePath.replace('.ngfactory', '');
25
moduleName = moduleName.replace('NgFactory', '');
26
loadChildrenString = loadChildrenString
0 commit comments