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 3a4129e commit 7ce6523Copy full SHA for 7ce6523
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
}
@@ -760,6 +763,9 @@ export class AngularCompilerPlugin implements Tapable {
760
763
} else if (changedTsFiles.length > 0) {
761
764
this._processLazyRoutes(this._findLazyRoutesInAst(changedTsFiles));
762
765
766
+ if (this._options.additionalLazyModules) {
767
+ this._processLazyRoutes(this._options.additionalLazyModules);
768
+ }
769
770
})
771
.then(() => {
0 commit comments