mirror of https://github.com/webpack/webpack.git
Merge branch 'master' of https://github.com/johnnyreilly/webpack
This commit is contained in:
commit
25c80ea9bc
|
@ -9,7 +9,7 @@ export interface LoaderContext {
|
||||||
getOptions(schema: Schema): any;
|
getOptions(schema: Schema): any;
|
||||||
emitWarning(warning: Error | string): void;
|
emitWarning(warning: Error | string): void;
|
||||||
emitError(error: Error | string): void;
|
emitError(error: Error | string): void;
|
||||||
getLogger(name: string): Compilation["logger"];
|
getLogger(name: string): import("../lib/logging/Logger").Logger;
|
||||||
resolve(context: string, request: string, callback: any): any;
|
resolve(context: string, request: string, callback: any): any;
|
||||||
getResolve(
|
getResolve(
|
||||||
options: Configuration
|
options: Configuration
|
||||||
|
@ -26,8 +26,8 @@ export interface LoaderContext {
|
||||||
contextify: (context: string, request: string) => string;
|
contextify: (context: string, request: string) => string;
|
||||||
};
|
};
|
||||||
rootContext: string;
|
rootContext: string;
|
||||||
webpack: boolean;
|
webpack?: boolean;
|
||||||
sourceMap: boolean;
|
sourceMap?: boolean;
|
||||||
mode: Mode;
|
mode: Mode;
|
||||||
_module: NormalModule;
|
_module: NormalModule;
|
||||||
_compilation: Compilation;
|
_compilation: Compilation;
|
||||||
|
@ -57,7 +57,9 @@ export interface EmptyContextAdditions {
|
||||||
async(): (
|
async(): (
|
||||||
err: Error | undefined | null,
|
err: Error | undefined | null,
|
||||||
content?: string | Buffer,
|
content?: string | Buffer,
|
||||||
sourceMap?: string | any
|
sourceMap?: string | RawSourceMap,
|
||||||
|
additionalData?: Record<string, any>,
|
||||||
|
...args: any[]
|
||||||
) => void | undefined;
|
) => void | undefined;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue