You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/configuration/stats.mdx
+32Lines changed: 32 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -444,6 +444,21 @@ module.exports = {
444
444
};
445
445
```
446
446
447
+
### stats.errorCause
448
+
449
+
`boolean``"auto"`
450
+
451
+
Tells `stats` whether to include the [`cause`](https://nodejs.org/en/blog/release/v16.9.0/#error-cause) property of errors in the output. It defaults to `true`.
452
+
453
+
```javascript
454
+
module.exports= {
455
+
//...
456
+
stats: {
457
+
errorCause:true,
458
+
},
459
+
};
460
+
```
461
+
447
462
### stats.errorDetails
448
463
449
464
`boolean``"auto"`
@@ -459,6 +474,23 @@ module.exports = {
459
474
};
460
475
```
461
476
477
+
### stats.errorErrors
478
+
479
+
`boolean``"auto"`
480
+
481
+
Tells `stats` whether to include the errors array from [`AggregateError`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/AggregateError) instances in the output. It defaults to `true`.
482
+
483
+
Useful when a single error is composed of multiple underlying errors, providing deeper visibility into grouped error structures.
0 commit comments