UNPKG

958 BTypeScriptView Raw
1import { BaseIncludePlugin, AddDependency } from "./BaseIncludePlugin";
2import * as Webpack from 'webpack';
3import { DependencyOptionsEx } from "./interfaces";
4export interface ModuleDependenciesPluginOptions {
5 [module: string]: undefined | string | DependencyOptionsEx | (undefined | string | DependencyOptionsEx)[];
6}
7export 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}