Skip to content

Commit 722711a

Browse files
author
kingdaro
committed
refactor(RemovedPluginError): extend WebpackError
1 parent 97f5849 commit 722711a

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

‎lib/RemovedPluginError.js‎

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
11
"use strict";
22

3-
module.exports = class RemovedPluginError extends Error {};
3+
const WebpackError = require("./WebpackError");
4+
5+
module.exports = class RemovedPluginError extends WebpackError {
6+
constructor(message) {
7+
super();
8+
9+
this.message = message;
10+
11+
Error.captureStackTrace(this, this.constructor);
12+
}
13+
};

0 commit comments

Comments
 (0)