diff --git a/packages/angular_devkit/build_angular/src/browser/schema.json b/packages/angular_devkit/build_angular/src/browser/schema.json index 65d4542c030e..727fc94e57ff 100644 --- a/packages/angular_devkit/build_angular/src/browser/schema.json +++ b/packages/angular_devkit/build_angular/src/browser/schema.json @@ -344,11 +344,6 @@ "description": "Generates a 'stats.json' file which can be analyzed using tools such as 'webpack-bundle-analyzer'.", "default": false }, - "forkTypeChecker": { - "type": "boolean", - "description": "Run the TypeScript type checker in a forked process.", - "default": true - }, "budgets": { "description": "Budget thresholds to ensure parts of your application stay within boundaries which you set.", "type": "array", diff --git a/packages/angular_devkit/build_angular/src/browser/specs/rebuild_spec.ts b/packages/angular_devkit/build_angular/src/browser/specs/rebuild_spec.ts index e597807133c7..8d98d8c97559 100644 --- a/packages/angular_devkit/build_angular/src/browser/specs/rebuild_spec.ts +++ b/packages/angular_devkit/build_angular/src/browser/specs/rebuild_spec.ts @@ -151,7 +151,7 @@ describe('Browser Builder rebuilds', () => { `, ); - const overrides = { watch: true, forkTypeChecker: false }; + const overrides = { watch: true }; const logger = new logging.Logger(''); let logs: string[] = []; logger.subscribe(e => logs.push(e.message)); @@ -344,7 +344,7 @@ describe('Browser Builder rebuilds', () => { // `selector must be a string` errors on VE are part of the emit result, but on Ivy they only // show up in getNgSemanticDiagnostics. Since getNgSemanticDiagnostics is only called on the // type checker, we must disable it to get a failing fourth build with Ivy. - const overrides = { watch: true, aot: true, forkTypeChecker: false }; + const overrides = { watch: true, aot: true }; const logger = new logging.Logger(''); let logs: string[] = []; logger.subscribe(e => logs.push(e.message)); diff --git a/packages/angular_devkit/build_angular/src/server/schema.json b/packages/angular_devkit/build_angular/src/server/schema.json index 4a9b7b6f9d11..a97746f405d2 100644 --- a/packages/angular_devkit/build_angular/src/server/schema.json +++ b/packages/angular_devkit/build_angular/src/server/schema.json @@ -220,11 +220,6 @@ "description": "Generates a 'stats.json' file which can be analyzed using tools such as 'webpack-bundle-analyzer'.", "default": false }, - "forkTypeChecker": { - "type": "boolean", - "description": "Run the TypeScript type checker in a forked process.", - "default": true - }, "watch": { "type": "boolean", "description": "Run build when files change.", diff --git a/packages/angular_devkit/build_angular/src/utils/build-options.ts b/packages/angular_devkit/build_angular/src/utils/build-options.ts index 433e194d1040..6cfde74ffc66 100644 --- a/packages/angular_devkit/build_angular/src/utils/build-options.ts +++ b/packages/angular_devkit/build_angular/src/utils/build-options.ts @@ -57,7 +57,6 @@ export interface BuildOptions { serviceWorker?: boolean; webWorkerTsConfig?: string; statsJson: boolean; - forkTypeChecker: boolean; hmr?: boolean; main: string; polyfills?: string; diff --git a/packages/angular_devkit/build_angular/src/utils/normalize-builder-schema.ts b/packages/angular_devkit/build_angular/src/utils/normalize-builder-schema.ts index 5fe6d10b7e3d..1f7f04fca624 100644 --- a/packages/angular_devkit/build_angular/src/utils/normalize-builder-schema.ts +++ b/packages/angular_devkit/build_angular/src/utils/normalize-builder-schema.ts @@ -50,7 +50,6 @@ export function normalizeBrowserSchema( sourceMap: normalizedSourceMapOptions, preserveSymlinks: options.preserveSymlinks === undefined ? process.execArgv.includes('--preserve-symlinks') : options.preserveSymlinks, statsJson: options.statsJson || false, - forkTypeChecker: options.forkTypeChecker || false, budgets: options.budgets || [], scripts: options.scripts || [], styles: options.styles || [], diff --git a/packages/schematics/angular/migrations/update-12/update-angular-config.ts b/packages/schematics/angular/migrations/update-12/update-angular-config.ts index 058911bc9793..45980abe397a 100644 --- a/packages/schematics/angular/migrations/update-12/update-angular-config.ts +++ b/packages/schematics/angular/migrations/update-12/update-angular-config.ts @@ -47,6 +47,7 @@ export default function (): Rule { for (const [, options] of allTargetOptions(target)) { delete options.experimentalRollupPass; delete options.lazyModules; + delete options.forkTypeChecker; } } });