Skip to content

Commit 6075f9c

Browse files
committed
feat(@ngtools/webpack): add additional lazy module plugin option
1 parent e15a5be commit 6075f9c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

+6
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ export interface AngularCompilerPluginOptions {
7373
missingTranslation?: string;
7474
platform?: PLATFORM;
7575

76+
// added to the list of lazy routes
77+
additionalLazyModules?: { [module: string]: string };
78+
7679
// Use tsconfig to include path globs.
7780
compilerOptions?: ts.CompilerOptions;
7881
}
@@ -757,6 +760,9 @@ export class AngularCompilerPlugin implements Tapable {
757760
} else if (changedTsFiles.length > 0) {
758761
this._processLazyRoutes(this._findLazyRoutesInAst(changedTsFiles));
759762
}
763+
if (this._options.additionalLazyModules) {
764+
this._processLazyRoutes(this._options.additionalLazyModules);
765+
}
760766
}
761767
})
762768
.then(() => {

0 commit comments

Comments
 (0)