Skip to content

Commit 3447947

Browse files
committed
refactor: remove Ivy checks
This checks are no longer needed as `enableIvy` option is now meaningless to the compiler
1 parent 1831c76 commit 3447947

File tree

3 files changed

+0
-21
lines changed

3 files changed

+0
-21
lines changed

packages/angular_devkit/build_angular/src/builders/browser-esbuild/compiler-plugin.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,6 @@ export function createCompilerPlugin(
166166
rootNames,
167167
errors: configurationDiagnostics,
168168
} = compilerCli.readConfiguration(pluginOptions.tsconfig, {
169-
enableIvy: true,
170169
noEmitOnError: false,
171170
suppressOutputPathCheck: true,
172171
outDir: undefined,

packages/angular_devkit/build_angular/src/webpack/plugins/typescript.ts

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -11,30 +11,11 @@ import { AngularWebpackPlugin } from '@ngtools/webpack';
1111
import { ScriptTarget } from 'typescript';
1212
import { WebpackConfigOptions } from '../../utils/build-options';
1313

14-
function ensureIvy(wco: WebpackConfigOptions): void {
15-
if (wco.tsConfig.options.enableIvy !== false) {
16-
return;
17-
}
18-
19-
wco.logger.warn(
20-
'Project is attempting to disable the Ivy compiler. ' +
21-
'Angular versions 12 and higher do not support the deprecated View Engine compiler for applications. ' +
22-
'The Ivy compiler will be used to build this project. ' +
23-
'\nFor additional information or if the build fails, please see https://angular.io/guide/ivy',
24-
);
25-
26-
wco.tsConfig.options.enableIvy = true;
27-
}
28-
2914
export function createIvyPlugin(
3015
wco: WebpackConfigOptions,
3116
aot: boolean,
3217
tsconfig: string,
3318
): AngularWebpackPlugin {
34-
if (aot) {
35-
ensureIvy(wco);
36-
}
37-
3819
const { buildOptions } = wco;
3920
const optimize = buildOptions.optimization.scripts;
4021

packages/ngtools/webpack/src/ivy/plugin.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,6 @@ export class AngularWebpackPlugin {
454454
this.pluginOptions.tsconfig,
455455
this.pluginOptions.compilerOptions,
456456
);
457-
compilerOptions.enableIvy = true;
458457
compilerOptions.noEmitOnError = false;
459458
compilerOptions.suppressOutputPathCheck = true;
460459
compilerOptions.outDir = undefined;

0 commit comments

Comments
 (0)