UNPKG

1.34 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 { 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 inlineStyleMimeType?: string;
20}
21export declare class AngularWebpackPlugin {
22 private readonly pluginOptions;
23 private watchMode?;
24 private ngtscNextProgram?;
25 private builder?;
26 private sourceFileCache?;
27 private readonly fileDependencies;
28 private readonly requiredFilesToEmit;
29 private readonly requiredFilesToEmitCache;
30 private readonly fileEmitHistory;
31 constructor(options?: Partial<AngularWebpackPluginOptions>);
32 get options(): AngularWebpackPluginOptions;
33 apply(compiler: Compiler): void;
34 private markResourceUsed;
35 private rebuildRequiredFiles;
36 private loadConfiguration;
37 private updateAotProgram;
38 private updateJitProgram;
39 private createFileEmitter;
40}