refactor(RemovedPluginError): extend WebpackError

This commit is contained in:
kingdaro 2018-02-01 21:15:43 -05:00
parent 97f5849e41
commit 722711a632
1 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,13 @@
"use strict";
module.exports = class RemovedPluginError extends Error {};
const WebpackError = require("./WebpackError");
module.exports = class RemovedPluginError extends WebpackError {
constructor(message) {
super();
this.message = message;
Error.captureStackTrace(this, this.constructor);
}
};