Skip to content

Commit fa92d1d

Browse files
committed
refactor(@ngtools/webpack): deprecate @ngtools/webpack loader and plugin
DEPRECATED: @ngtools/webpack loader and plugin are deprecated. Use @angular/build instead.
1 parent 15929ee commit fa92d1d

3 files changed

Lines changed: 20 additions & 0 deletions

File tree

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,8 @@
99
export { angularWebpackLoader as default } from './loader';
1010
export { type AngularWebpackPluginOptions, AngularWebpackPlugin, imageDomains } from './plugin';
1111

12+
/**
13+
* @deprecated Part of Angular's Webpack support deprecation.
14+
* Deprecated since v22.
15+
*/
1216
export const AngularWebpackLoaderPath: string = __filename;

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ type SourceMap = NonNullable<
1616

1717
const JS_FILE_REGEXP = /\.[cm]?js$/;
1818

19+
/**
20+
* @deprecated Part of Angular's Webpack support deprecation.
21+
* Deprecated since v22.
22+
*/
1923
export function angularWebpackLoader(
2024
this: LoaderContext<unknown>,
2125
content: string,

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,16 @@ import { createAotTransformers, createJitTransformers, mergeTransformers } from
3939
*/
4040
const DIAGNOSTICS_AFFECTED_THRESHOLD = 1;
4141

42+
/**
43+
* @deprecated Part of Angular's Webpack support deprecation.
44+
* Deprecated since v22.
45+
*/
4246
export const imageDomains: Set<string> = new Set();
4347

48+
/**
49+
* @deprecated Part of Angular's Webpack support deprecation.
50+
* Deprecated since v22.
51+
*/
4452
export interface AngularWebpackPluginOptions {
4553
tsconfig: string;
4654
compilerOptions?: CompilerOptions;
@@ -71,6 +79,10 @@ interface FileEmitHistoryItem {
7179
hash: Uint8Array;
7280
}
7381

82+
/**
83+
* @deprecated Part of Angular's Webpack support deprecation.
84+
* Deprecated since v22.
85+
*/
7486
export class AngularWebpackPlugin {
7587
private readonly pluginOptions: AngularWebpackPluginOptions;
7688
private compilerCliModule?: typeof import('@angular/compiler-cli');

0 commit comments

Comments
 (0)