From bbff7403fbf46f9ad92240ac213df8d30ef31b64 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 20 Sep 2018 02:56:13 +0200 Subject: update packages --- .../webpack/lib/ModuleDependencyWarning.js | 47 ++++++++++++---------- 1 file changed, 25 insertions(+), 22 deletions(-) (limited to 'node_modules/webpack/lib/ModuleDependencyWarning.js') diff --git a/node_modules/webpack/lib/ModuleDependencyWarning.js b/node_modules/webpack/lib/ModuleDependencyWarning.js index 235fa1bb2..be62791cb 100644 --- a/node_modules/webpack/lib/ModuleDependencyWarning.js +++ b/node_modules/webpack/lib/ModuleDependencyWarning.js @@ -1,22 +1,25 @@ -/* - MIT License http://www.opensource.org/licenses/mit-license.php - Author Tobias Koppers @sokra -*/ -"use strict"; - -const WebpackError = require("./WebpackError"); -const formatLocation = require("./formatLocation"); - -module.exports = class ModuleDependencyWarning extends WebpackError { - constructor(module, err, loc) { - super(); - - this.name = "ModuleDependencyWarning"; - this.message = `${formatLocation(loc)} ${err.message}`; - this.details = err.stack.split("\n").slice(1).join("\n"); - this.origin = this.module = module; - this.error = err; - - Error.captureStackTrace(this, this.constructor); - } -}; +/* + MIT License http://www.opensource.org/licenses/mit-license.php + Author Tobias Koppers @sokra +*/ +"use strict"; + +const WebpackError = require("./WebpackError"); + +module.exports = class ModuleDependencyWarning extends WebpackError { + constructor(module, err, loc) { + super(err.message); + + this.name = "ModuleDependencyWarning"; + this.details = err.stack + .split("\n") + .slice(1) + .join("\n"); + this.module = module; + this.loc = loc; + this.error = err; + this.origin = module.issuer; + + Error.captureStackTrace(this, this.constructor); + } +}; -- cgit v1.2.3