We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e15a5be commit 6075f9cCopy full SHA for 6075f9c
packages/@ngtools/webpack/src/angular_compiler_plugin.ts
@@ -73,6 +73,9 @@ export interface AngularCompilerPluginOptions {
73
missingTranslation?: string;
74
platform?: PLATFORM;
75
76
+ // added to the list of lazy routes
77
+ additionalLazyModules?: { [module: string]: string };
78
+
79
// Use tsconfig to include path globs.
80
compilerOptions?: ts.CompilerOptions;
81
}
@@ -757,6 +760,9 @@ export class AngularCompilerPlugin implements Tapable {
757
760
} else if (changedTsFiles.length > 0) {
758
761
this._processLazyRoutes(this._findLazyRoutesInAst(changedTsFiles));
759
762
763
+ if (this._options.additionalLazyModules) {
764
+ this._processLazyRoutes(this._options.additionalLazyModules);
765
+ }
766
767
})
768
.then(() => {
0 commit comments