Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/ngtools/webpack/src/ivy/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
export { angularWebpackLoader as default } from './loader';
export { type AngularWebpackPluginOptions, AngularWebpackPlugin, imageDomains } from './plugin';

export const AngularWebpackLoaderPath = __filename;
export const AngularWebpackLoaderPath: string = __filename;
2 changes: 1 addition & 1 deletion packages/ngtools/webpack/src/ivy/paths.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function externalizeForWindows(path: string): string {
return result;
}

export const externalizePath = (() => {
export const externalizePath: typeof externalizeForWindows = (() => {
if (process.platform !== 'win32') {
return (path: string) => path;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/ngtools/webpack/src/ivy/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ import { createAotTransformers, createJitTransformers, mergeTransformers } from
*/
const DIAGNOSTICS_AFFECTED_THRESHOLD = 1;

export const imageDomains = new Set<string>();
export const imageDomains: Set<string> = new Set();

export interface AngularWebpackPluginOptions {
tsconfig: string;
Expand Down
2 changes: 1 addition & 1 deletion packages/ngtools/webpack/src/ivy/symbol.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* found in the LICENSE file at https://angular.dev/license
*/

export const AngularPluginSymbol = Symbol.for('@ngtools/webpack[angular-compiler]');
export const AngularPluginSymbol: unique symbol = Symbol.for('@ngtools/webpack[angular-compiler]');

export interface EmitFileResult {
content?: string;
Expand Down
6 changes: 4 additions & 2 deletions packages/ngtools/webpack/src/loaders/inline-resource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@

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

export const InlineAngularResourceLoaderPath = __filename;
export const InlineAngularResourceLoaderPath: string = __filename;

export const InlineAngularResourceSymbol = Symbol('@ngtools/webpack[angular-resource]');
export const InlineAngularResourceSymbol: unique symbol = Symbol(
'@ngtools/webpack[angular-resource]',
);

export interface CompilationWithInlineAngularResource extends Compilation {
[InlineAngularResourceSymbol]: string;
Expand Down
Loading