Skip to content

Commit 97368d8

Browse files
committed
fix(@ngtools/webpack): ngfactory can be .js too
1 parent 466dfb6 commit 97368d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@ngtools/webpack/src/transformers/export_lazy_module_map.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export function exportLazyModuleMap(
2020
let [, moduleName] = loadChildrenString.split('#');
2121
let modulePath = lazyRoutes[loadChildrenString];
2222

23-
if (modulePath.endsWith('.ngfactory.ts')) {
23+
if (modulePath.match(/\.ngfactory\.[jt]s$/)) {
2424
modulePath = modulePath.replace('.ngfactory', '');
2525
moduleName = moduleName.replace('NgFactory', '');
2626
loadChildrenString = loadChildrenString

0 commit comments

Comments
 (0)