UNPKG

1.73 kBTypeScriptView Raw
1/**
2 * @license
3 * Copyright Google LLC All Rights Reserved.
4 *
5 * Use of this source code is governed by an MIT-style license that can be
6 * found in the LICENSE file at https://angular.dev/license
7 */
8import type { CompilerOptions } from '@angular/compiler-cli';
9import type { Compiler } from 'webpack';
10export declare const imageDomains: Set<string>;
11export interface AngularWebpackPluginOptions {
12 tsconfig: string;
13 compilerOptions?: CompilerOptions;
14 fileReplacements: Record<string, string>;
15 substitutions: Record<string, string>;
16 directTemplateLoading: boolean;
17 emitClassMetadata: boolean;
18 emitNgModuleScope: boolean;
19 emitSetClassDebugInfo?: boolean;
20 jitMode: boolean;
21 inlineStyleFileExtension?: string;
22}
23export declare class AngularWebpackPlugin {
24 private readonly pluginOptions;
25 private compilerCliModule?;
26 private watchMode?;
27 private ngtscNextProgram?;
28 private builder?;
29 private sourceFileCache?;
30 private webpackCache?;
31 private webpackCreateHash?;
32 private readonly fileDependencies;
33 private readonly requiredFilesToEmit;
34 private readonly requiredFilesToEmitCache;
35 private readonly fileEmitHistory;
36 constructor(options?: Partial<AngularWebpackPluginOptions>);
37 private get compilerCli();
38 get options(): AngularWebpackPluginOptions;
39 apply(compiler: Compiler): void;
40 private setupCompilation;
41 private registerWithCompilation;
42 private markResourceUsed;
43 private rebuildRequiredFiles;
44 private loadConfiguration;
45 private updateAotProgram;
46 private updateJitProgram;
47 private createFileEmitter;
48 private initializeCompilerCli;
49 private addFileEmitHistory;
50 private getFileEmitHistory;
51}