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