UNPKG

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