File tree Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -262,6 +262,9 @@ module.exports = mergeExports(fn, {
262
262
get WatchIgnorePlugin ( ) {
263
263
return require ( "./WatchIgnorePlugin" ) ;
264
264
} ,
265
+ get WebpackError ( ) {
266
+ return require ( "./WebpackError" ) ;
267
+ } ,
265
268
get WebpackOptionsApply ( ) {
266
269
return require ( "./WebpackOptionsApply" ) ;
267
270
} ,
Original file line number Diff line number Diff line change @@ -9879,7 +9879,11 @@ declare class WebWorkerTemplatePlugin {
9879
9879
*/
9880
9880
apply ( compiler : Compiler ) : void ;
9881
9881
}
9882
- declare interface WebpackError extends Error {
9882
+ declare class WebpackError extends Error {
9883
+ /**
9884
+ * Creates an instance of WebpackError.
9885
+ */
9886
+ constructor ( message ?: string ) ;
9883
9887
details : any ;
9884
9888
module : Module ;
9885
9889
loc : DependencyLocation ;
@@ -9888,6 +9892,20 @@ declare interface WebpackError extends Error {
9888
9892
file : string ;
9889
9893
serialize ( __0 : { write : any } ) : void ;
9890
9894
deserialize ( __0 : { read : any } ) : void ;
9895
+
9896
+ /**
9897
+ * Create .stack property on a target object
9898
+ */
9899
+ static captureStackTrace ( targetObject : { } , constructorOpt ?: Function ) : void ;
9900
+
9901
+ /**
9902
+ * Optional override for formatting stack traces
9903
+ */
9904
+ static prepareStackTrace ?: (
9905
+ err : Error ,
9906
+ stackTraces : NodeJS . CallSite [ ]
9907
+ ) => any ;
9908
+ static stackTraceLimit : number ;
9891
9909
}
9892
9910
declare abstract class WebpackLogger {
9893
9911
getChildLogger : ( arg0 : string | ( ( ) => string ) ) => WebpackLogger ;
@@ -10547,6 +10565,7 @@ declare namespace exports {
10547
10565
Stats ,
10548
10566
Template ,
10549
10567
WatchIgnorePlugin ,
10568
+ WebpackError ,
10550
10569
WebpackOptionsApply ,
10551
10570
WebpackOptionsDefaulter ,
10552
10571
Entry ,
You can’t perform that action at this time.
0 commit comments