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.
exportLazyModuleMap
1 parent 3af79b9 commit 0cf8ce5Copy full SHA for 0cf8ce5
packages/ngtools/webpack/src/angular_compiler_plugin.ts
@@ -1012,7 +1012,12 @@ export class AngularCompilerPlugin {
1012
));
1013
}
1014
} else if (this._platform === PLATFORM.Server) {
1015
- this._transformers.push(exportLazyModuleMap(isMainPath, getLazyRoutes));
+ // The export lazy module map is required only for string based lazy loading
1016
+ // which is not supported in Ivy
1017
+ if (!this._compilerOptions.enableIvy) {
1018
+ this._transformers.push(exportLazyModuleMap(isMainPath, getLazyRoutes));
1019
+ }
1020
+
1021
if (this._useFactories) {
1022
this._transformers.push(
1023
exportNgFactory(isMainPath, getEntryModule),
0 commit comments