diff --git a/packages/webpack/lib/utils/errors.js b/packages/webpack/lib/utils/errors.js
index <HASH>..<HASH> 100644
--- a/packages/webpack/lib/utils/errors.js
+++ b/packages/webpack/lib/utils/errors.js
@@ -2,10 +2,11 @@
 
 const { EOL } = require('os');
 
-class BuildError {
+class BuildError extends Error {
   constructor(stack) {
+    super();
     this.name = this.constructor.name;
-    this.stack = `${this.name} in ${stack.replace(/\033?\[[0-9]{1,2}m/g, '')}`;
+    this.stack = `${this.name}: ${stack.replace(/\033?\[[0-9]{1,2}m/g, '')}`;
     this.message = this.stack.slice(0, this.stack.indexOf(EOL));
   }
 }
refactor(webpack): set up proper inheritance