UNPKG

516 BJavaScriptView Raw
1/*
2 MIT License http://www.opensource.org/licenses/mit-license.php
3 Author Tobias Koppers @sokra
4*/
5"use strict";
6
7const WebpackError = require("./WebpackError");
8
9class ModuleNotFoundError extends WebpackError {
10 constructor(module, err) {
11 super("Module not found: " + err);
12
13 this.name = "ModuleNotFoundError";
14 this.details = err.details;
15 this.missing = err.missing;
16 this.module = module;
17 this.error = err;
18
19 Error.captureStackTrace(this, this.constructor);
20 }
21}
22
23module.exports = ModuleNotFoundError;