Skip to content

Commit 0f9de92

Browse files
filipesilvaalexeagle
authored andcommitted
feat(@angular-devkit/build-angular): remove experimentalImportFactories option
It will just be always be used when applicable. Fix #14218
1 parent 5b5fffb commit 0f9de92

5 files changed

Lines changed: 0 additions & 19 deletions

File tree

packages/angular/cli/lib/config/schema.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -886,11 +886,6 @@
886886
"webWorkerTsConfig": {
887887
"type": "string",
888888
"description": "TypeScript configuration for Web Worker modules."
889-
},
890-
"experimentalImportFactories": {
891-
"description": "**EXPERIMENTAL** Transform import statements for lazy routes to import factories when using View Engine. Should only be used when switching back and forth between View Engine and Ivy. See https://angular.io/guide/ivy for usage information.",
892-
"type": "boolean",
893-
"default": false
894889
}
895890
},
896891
"additionalProperties": false,

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ export interface BuildOptions {
6060
forkTypeChecker: boolean;
6161
profile?: boolean;
6262
es5BrowserSupport?: boolean;
63-
experimentalImportFactories?: boolean;
6463

6564
main: string;
6665
index: string;

packages/angular_devkit/build_angular/src/angular-cli-files/models/webpack-configs/typescript.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ function _createAotPlugin(
9191
contextElementDependencyConstructor: require('webpack/lib/dependencies/ContextElementDependency'),
9292
logger: wco.logger,
9393
directTemplateLoading: true,
94-
importFactories: buildOptions.experimentalImportFactories,
9594
...options,
9695
};
9796

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -316,11 +316,6 @@
316316
"default": false,
317317
"x-deprecated": true
318318
},
319-
"experimentalImportFactories": {
320-
"description": "**EXPERIMENTAL** Transform import statements for lazy routes to import factories when using View Engine. Should only be used when switching back and forth between View Engine and Ivy. See https://angular.io/guide/ivy for usage information.",
321-
"type": "boolean",
322-
"default": false
323-
},
324319
"webWorkerTsConfig": {
325320
"type": "string",
326321
"description": "TypeScript configuration for Web Worker modules."

tests/legacy-cli/e2e/tests/build/lazy-load-syntax.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,6 @@ export default async function () {
8989
await ng('e2e', '--prod');
9090

9191
// Test `import()` style lazy load.
92-
if (!ivyProject) {
93-
await updateJsonFile('angular.json', json => {
94-
// Add the experimental flag to import factories in View Engine.
95-
const buildTarget = json['projects'][projectName]['architect']['build'];
96-
buildTarget['options']['experimentalImportFactories'] = true;
97-
});
98-
}
9992
// Both Ivy and View Engine should support it.
10093
await replaceLoadChildren(`() => import('./lazy/lazy.module').then(m => m.LazyModule)`);
10194

0 commit comments

Comments
 (0)