UNPKG

1.49 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.io/license
7 */
8import { CompilerOptions } from '@angular/compiler-cli';
9import type { Compiler } from 'webpack';
10export interface AngularWebpackPluginOptions {
11 tsconfig: string;
12 compilerOptions?: CompilerOptions;
13 fileReplacements: Record<string, string>;
14 substitutions: Record<string, string>;
15 directTemplateLoading: boolean;
16 emitClassMetadata: boolean;
17 emitNgModuleScope: boolean;
18 jitMode: boolean;
19 /** @deprecated use `inlineStyleFileExtension` instead. */
20 inlineStyleMimeType?: string;
21 inlineStyleFileExtension?: string;
22}
23export declare class AngularWebpackPlugin {
24 private readonly pluginOptions;
25 private watchMode?;
26 private ngtscNextProgram?;
27 private builder?;
28 private sourceFileCache?;
29 private readonly fileDependencies;
30 private readonly requiredFilesToEmit;
31 private readonly requiredFilesToEmitCache;
32 private readonly fileEmitHistory;
33 constructor(options?: Partial<AngularWebpackPluginOptions>);
34 get options(): AngularWebpackPluginOptions;
35 apply(compiler: Compiler): void;
36 private registerWithCompilation;
37 private markResourceUsed;
38 private rebuildRequiredFiles;
39 private loadConfiguration;
40 private updateAotProgram;
41 private updateJitProgram;
42 private createFileEmitter;
43}