diff --git a/types/webpack/index.d.ts b/types/webpack/index.d.ts
index 55d7dbd801..7e3f7fdaf2 100644
--- a/types/webpack/index.d.ts
+++ b/types/webpack/index.d.ts
@@ -66,19 +66,16 @@ declare namespace webpack {
*/
externals?: ExternalsElement | ExternalsElement[];
/**
- *
- * - "web" Compile for usage in a browser-like environment (default)
- * - "webworker" Compile as WebWorker
- * - "node" Compile for usage in a node.js-like environment (use require to load chunks)
- * - "async-node" Compile for usage in a node.js-like environment (use fs and vm to load chunks async)
- * - "node-webkit" Compile for usage in webkit, uses jsonp chunk loading but also supports builtin node.js modules plus require(“nw.gui”) (experimental)
- * - "atom" Compile for usage in electron (formerly known as atom-shell), supports require for modules necessary to run Electron.
- * - "electron-renderer" Compile for Electron for renderer process, providing a target using JsonpTemplatePlugin, FunctionModulePlugin
- * for browser environments and NodeTargetPlugin and ExternalsPlugin for CommonJS and Electron built-in modules.
-
- *
- "electron-main" Compile for Electron for main process.
- * - "atom" Alias for electron-main
- * - "electron" Alias for electron-main
- *
+ * - "web" Compile for usage in a browser-like environment (default).
+ * - "webworker" Compile as WebWorker.
+ * - "node" Compile for usage in a node.js-like environment (use require to load chunks).
+ * - "async-node" Compile for usage in a node.js-like environment (use fs and vm to load chunks async).
+ * - "node-webkit" Compile for usage in webkit, uses jsonp chunk loading but also supports builtin node.js modules plus require(“nw.gui”) (experimental)
+ * - "atom" Compile for usage in electron (formerly known as atom-shell), supports require for modules necessary to run Electron.
+ * - "electron-renderer" Compile for Electron for renderer process, providing a target using JsonpTemplatePlugin, FunctionModulePlugin for browser environments and NodeTargetPlugin and ExternalsPlugin for CommonJS and Electron built-in modules.
+ * - "electron-main" Compile for Electron for main process.
+ * - "atom" Alias for electron-main.
+ * - "electron" Alias for electron-main.
*/
target?: 'web' | 'webworker' | 'node' | 'async-node' | 'node-webkit' | 'atom' | 'electron' | 'electron-renderer' | 'electron-main' | ((compiler?: any) => void);
/** Report the first error as a hard error instead of tolerating it. */
@@ -171,17 +168,15 @@ declare namespace webpack {
library?: string | string[];
/**
* Which format to export the library:
- *
- * - "var" - Export by setting a variable: var Library = xxx (default)
- * - "this" - Export by setting a property of this: this["Library"] = xxx
- * - "commonjs" - Export by setting a property of exports: exports["Library"] = xxx
- * - "commonjs2" - Export by setting module.exports: module.exports = xxx
- * - "amd" - Export to AMD (optionally named)
- * - "umd" - Export to AMD, CommonJS2 or as property in root
- * - "window" - Assign to window
- * - "assign" - Assign to a global variable
- * - "jsonp" - Generate Webpack JSONP module
-
- *
+ * - "var" - Export by setting a variable: var Library = xxx (default)
+ * - "this" - Export by setting a property of this: this["Library"] = xxx
+ * - "commonjs" - Export by setting a property of exports: exports["Library"] = xxx
+ * - "commonjs2" - Export by setting module.exports: module.exports = xxx
+ * - "amd" - Export to AMD (optionally named)
+ * - "umd" - Export to AMD, CommonJS2 or as property in root
+ * - "window" - Assign to window
+ * - "assign" - Assign to a global variable
+ * - "jsonp" - Generate Webpack JSONP module
*/
libraryTarget?: 'var' | 'this' | 'commonjs' | 'commonjs2' | 'amd' | 'umd' | 'window' | 'assign' | 'jsonp';
/** Configure which module or modules will be exposed via the `libraryTarget` */
@@ -955,42 +950,9 @@ declare namespace webpack {
usedModuleIds: any;
getStats(): Stats;
addModule(module: CompilationModule, cacheGroup: any): any;
- // getModule(module)
- // findModule(identifier)
- // waitForBuildingFinished(module, callback)
- // buildModule(module, optional, origin, dependencies, thisCallback)
- // processModuleDependencies(module, callback)
- // addModuleDependencies(module, dependencies, bail, cacheGroup, recursive, callback)
// tslint:disable-next-line:ban-types
addEntry(context: any, entry: any, name: any, callback: Function): void;
- // prefetch(context, dependency, callback)
- // rebuildModule(module, thisCallback)
- // finish()
- // unseal()
- // seal(callback)
- // sortModules(modules)
- // reportDependencyErrorsAndWarnings(module, blocks)
- // addChunkInGroup(name, module, loc, request)
- // addChunk(name)
- // assignIndex(module)
- // assignDepth(module)
- // processDependenciesBlocksForChunkGroups(inputChunkGroups)
- // removeReasonsOfDependencyBlock(module, block)
- // patchChunksAfterReasonRemoval(module, chunk)
- // removeChunkFromDependencies(block, chunk)
- // applyModuleIds()
- // applyChunkIds()
- // sortItemsWithModuleIds()
- // sortItemsWithChunkIds()
- // summarizeDependencies()
- // createHash()
- // modifyHash(update)
- // createModuleAssets()
- // createChunkAssets()
getPath(filename: string, data: {hash?: any, chunk?: any, filename?: string, basename?: string, query?: any}): string;
- // createChildCompiler(name, outputOptions, plugins)
- // checkConstraints()
-
/**
* @deprecated Compilation.applyPlugins is deprecated. Use new API on `.hooks` instead
*/