diff options
Diffstat (limited to 'node_modules/webpack/lib/ModuleNotFoundError.js')
-rw-r--r-- | node_modules/webpack/lib/ModuleNotFoundError.js | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/node_modules/webpack/lib/ModuleNotFoundError.js b/node_modules/webpack/lib/ModuleNotFoundError.js new file mode 100644 index 0000000..cdfc314 --- /dev/null +++ b/node_modules/webpack/lib/ModuleNotFoundError.js @@ -0,0 +1,23 @@ +/* + MIT License http://www.opensource.org/licenses/mit-license.php + Author Tobias Koppers @sokra +*/ +"use strict"; + +const WebpackError = require("./WebpackError"); + +class ModuleNotFoundError extends WebpackError { + constructor(module, err) { + super("Module not found: " + err); + + this.name = "ModuleNotFoundError"; + this.details = err.details; + this.missing = err.missing; + this.module = module; + this.error = err; + + Error.captureStackTrace(this, this.constructor); + } +} + +module.exports = ModuleNotFoundError; |