Repository URL to install this package:
|
Version:
1.4.0 ▾
|
import { SyncHook, SyncBailHook, SyncWaterfallHook, SyncLoopHook, AsyncParallelHook, AsyncParallelBailHook, AsyncSeriesHook, AsyncSeriesBailHook, AsyncSeriesWaterfallHook, HookMap } from 'tapable';
import { Request } from '../webpack/typings';
import { Loader, Compiler } from 'webpack';
export { Compiler };
export interface NormalModuleFactoryHooks {
resolver: SyncWaterfallHook;
factory: SyncWaterfallHook;
beforeResolve: AsyncSeriesWaterfallHook;
afterResolve: AsyncSeriesWaterfallHook;
createModule: SyncBailHook;
module: SyncWaterfallHook;
createParser: HookMap;
parser: HookMap;
createGenerator: HookMap;
generator: HookMap;
}
export declare type TappableHook = SyncHook | SyncBailHook | SyncWaterfallHook | SyncLoopHook | AsyncParallelHook | AsyncParallelBailHook | AsyncSeriesHook | AsyncSeriesBailHook | AsyncSeriesWaterfallHook;
export declare type MatchableTestArg = string | Request;
export interface MatchableTest {
[Symbol.match]?(target: string): RegExpMatchArray | null;
test(match: MatchableTestArg): boolean;
}
export interface ReplacementHandler extends Function {
(result?: Result): void;
}
export declare type Replacement = ReplacementHandler | string;
export declare type Matchable = MatchableTest;
export interface Result {
request: Request | string;
resource: string;
rawRequest: string;
type: 'javascript/auto';
loaders: Loader[];
dependencies: Result[];
parser: HookMap;
generator: any;
resolveOptions: any;
}
export interface NormalModuleFactory {
hooks: NormalModuleFactoryHooks;
}