Skip to content

Commit 8770d5f

Browse files
clydinalan-agius4
authored andcommitted
refactor(@angular-devkit/build-angular): remove use of deprecated ngtools ivy namespace export
With the removal of the deprecated ViewEngine-based Webpack plugin, the ivy namespace export that was previously used is now deprecated in favor of direct exports of the Ivy-based plugin.
1 parent 03a00ee commit 8770d5f

File tree

1 file changed

+6
-6
lines changed
  • packages/angular_devkit/build_angular/src/webpack/configs

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import { buildOptimizerLoaderPath } from '@angular-devkit/build-optimizer';
99
import { getSystemPath } from '@angular-devkit/core';
1010
import { CompilerOptions } from '@angular/compiler-cli';
11-
import { ivy } from '@ngtools/webpack';
11+
import { AngularWebpackLoaderPath, AngularWebpackPlugin } from '@ngtools/webpack';
1212
import { WebpackConfigOptions } from '../../utils/build-options';
1313

1414
function ensureIvy(wco: WebpackConfigOptions): void {
@@ -30,7 +30,7 @@ function createIvyPlugin(
3030
wco: WebpackConfigOptions,
3131
aot: boolean,
3232
tsconfig: string,
33-
): ivy.AngularWebpackPlugin {
33+
): AngularWebpackPlugin {
3434
const { buildOptions } = wco;
3535
const optimize = buildOptions.optimization.scripts;
3636

@@ -51,7 +51,7 @@ function createIvyPlugin(
5151
}
5252
}
5353

54-
return new ivy.AngularWebpackPlugin({
54+
return new AngularWebpackPlugin({
5555
tsconfig,
5656
compilerOptions,
5757
fileReplacements,
@@ -68,7 +68,7 @@ export function getNonAotConfig(wco: WebpackConfigOptions) {
6868
rules: [
6969
{
7070
test: /\.[jt]sx?$/,
71-
loader: ivy.AngularWebpackLoaderPath,
71+
loader: AngularWebpackLoaderPath,
7272
},
7373
],
7474
},
@@ -97,13 +97,13 @@ export function getAotConfig(wco: WebpackConfigOptions) {
9797
},
9898
]
9999
: []),
100-
ivy.AngularWebpackLoaderPath,
100+
AngularWebpackLoaderPath,
101101
],
102102
},
103103
// "allowJs" support with ivy plugin - ensures build optimizer is not run twice
104104
{
105105
test: /\.jsx?$/,
106-
use: [ivy.AngularWebpackLoaderPath],
106+
use: [AngularWebpackLoaderPath],
107107
},
108108
],
109109
},

0 commit comments

Comments
 (0)