mirror of https://github.com/webpack/webpack.git
refactor(RemovedPluginError): extend WebpackError
This commit is contained in:
parent
97f5849e41
commit
722711a632
|
@ -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);
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue