Skip to content

Commit 277b356

Browse files
alan-agius4clydin
authored andcommitted
refactor(@ngtools/webpack): improve symbols description
1 parent 0fe6cfe commit 277b356

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/ngtools/webpack/src/inline-data-loader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
import type { Compilation, LoaderContext } from 'webpack';
1010

11-
export const InlineAngularResourceSymbol = Symbol();
11+
export const InlineAngularResourceSymbol = Symbol('@ngtools/webpack[angular-resource]');
1212

1313
export interface CompilationWithInlineAngularResource extends Compilation {
1414
[InlineAngularResourceSymbol]: string;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ export class AngularWebpackPlugin {
127127

128128
// Set resolver options
129129
const pathsPlugin = new TypeScriptPathsPlugin();
130-
compiler.hooks.afterResolvers.tap('angular-compiler', (compiler) => {
130+
compiler.hooks.afterResolvers.tap(PLUGIN_NAME, (compiler) => {
131131
// When Ivy is enabled we need to add the fields added by NGCC
132132
// to take precedence over the provided mainFields.
133133
// NGCC adds fields in package.json suffixed with '_ivy_ngcc'

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* found in the LICENSE file at https://angular.io/license
77
*/
88

9-
export const AngularPluginSymbol = Symbol.for('@angular-devkit/build-angular[angular-compiler]');
9+
export const AngularPluginSymbol = Symbol.for('@ngtools/webpack[angular-compiler]');
1010

1111
export interface EmitFileResult {
1212
content?: string;

0 commit comments

Comments
 (0)