UNPKG

668 BTypeScriptView Raw
1import { BaseIncludePlugin, AddDependency } from "./BaseIncludePlugin";
2declare module "minimatch" {
3 interface IMinimatch {
4 match(fname: string, partial: boolean): boolean;
5 }
6}
7export declare class GlobDependenciesPlugin extends BaseIncludePlugin {
8 private root;
9 private hash;
10 private modules;
11 /**
12 * Each hash member is a module name, for which globbed value(s) will be added as dependencies
13 **/
14 constructor(hash: {
15 [module: string]: string | string[];
16 });
17 apply(compiler: Webpack.Compiler): void;
18 parser(compilation: Webpack.Compilation, parser: Webpack.Parser, addDependency: AddDependency): void;
19}