mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
webpack - added missing chunkName parameter
This commit is contained in:
4
webpack/webpack-env.d.ts
vendored
4
webpack/webpack-env.d.ts
vendored
@@ -28,7 +28,7 @@ declare namespace __WebpackModuleApi {
|
||||
*
|
||||
* This creates a chunk. The chunk can be named. If a chunk with this name already exists, the dependencies are merged into that chunk and that chunk is used.
|
||||
*/
|
||||
ensure: (paths: string[], callback: (require: <T>(path: string) => T) => void) => void;
|
||||
ensure: (paths: string[], callback: (require: <T>(path: string) => T) => void, chunkName?: string) => void;
|
||||
context: (path: string, deep?: boolean, filter?: RegExp) => RequireContext;
|
||||
/**
|
||||
* Returns the module id of a dependency. The call is sync. No request to the server is fired. The compiler ensures that the dependency is available.
|
||||
@@ -100,4 +100,4 @@ declare var __non_webpack_require__: any;
|
||||
/**
|
||||
* Equals the config option debug
|
||||
*/
|
||||
declare var DEBUG: boolean;
|
||||
declare var DEBUG: boolean;
|
||||
|
||||
Reference in New Issue
Block a user