Skip to content

Commit 18fb7fa

Browse files
Alanvikerman
Alan
authored andcommitted
feat(@angular-devkit/build-angular): deprecate lazyModules option
String form of lazy loading and SystemJsNgModuleLoader are deprecated, and this is part of its usage. See: https://angular.io/api/core/SystemJsNgModuleLoader#systemjsngmoduleloader
1 parent 0c2f2f4 commit 18fb7fa

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

packages/angular_devkit/build_angular/src/angular-cli-files/models/build-options.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ export interface BuildOptions {
6969
scripts: ExtraEntryPoint[];
7070
styles: ExtraEntryPoint[];
7171
stylePreprocessorOptions?: { includePaths: string[] };
72+
/** @deprecated SystemJsNgModuleLoader is deprecated, and this is part of its usage. */
7273
lazyModules: string[];
7374
platform?: 'browser' | 'server';
7475
fileReplacements: NormalizedFileReplacement[];

packages/angular_devkit/build_angular/src/browser/schema.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,7 @@
312312
"items": {
313313
"type": "string"
314314
},
315+
"x-deprecated": "'SystemJsNgModuleLoader' is deprecated, and this is part of its usage. Use 'import()' syntax instead.",
315316
"default": []
316317
},
317318
"budgets": {

packages/angular_devkit/build_angular/src/server/schema.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@
217217
"items": {
218218
"type": "string"
219219
},
220+
"x-deprecated": "'SystemJsNgModuleLoader' is deprecated, and this is part of its usage. Use 'import()' syntax instead.",
220221
"default": []
221222
},
222223
"watch": {

0 commit comments

Comments
 (0)