1 | import { BaseIncludePlugin, AddDependency } from "./BaseIncludePlugin";
|
2 | export interface ModuleDependenciesPluginOptions {
|
3 | [module: string]: undefined | string | DependencyOptionsEx | (undefined | string | DependencyOptionsEx)[];
|
4 | }
|
5 | export declare class ModuleDependenciesPlugin extends BaseIncludePlugin {
|
6 | root: string;
|
7 | hash: {
|
8 | [name: string]: (string | DependencyOptionsEx)[];
|
9 | };
|
10 | modules: {
|
11 | [module: string]: (string | DependencyOptionsEx)[];
|
12 | };
|
13 | /**
|
14 | * Each hash member is a module name, for which additional module names (or options) are added as dependencies.
|
15 | */
|
16 | constructor(hash: ModuleDependenciesPluginOptions);
|
17 | apply(compiler: Webpack.Compiler): void;
|
18 | parser(compilation: Webpack.Compilation, parser: Webpack.Parser, addDependency: AddDependency): void;
|
19 | }
|