Skip to content

Commit 6f4cae6

Browse files
authored
docs(configuration): add stats.errorCause & stats.errorErrors (#7621)
* docs(configuration): add `stats.errorCause` * docs(configuration): add `stats.errorErrors`
1 parent 91b8ace commit 6f4cae6

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

src/content/configuration/stats.mdx

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,21 @@ module.exports = {
444444
};
445445
```
446446

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+
447462
### stats.errorDetails
448463

449464
`boolean` `"auto"`
@@ -459,6 +474,23 @@ module.exports = {
459474
};
460475
```
461476

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.
484+
485+
```javascript
486+
module.exports = {
487+
//...
488+
stats: {
489+
errorErrors: true,
490+
},
491+
};
492+
```
493+
462494
### stats.errorStack
463495

464496
`boolean = true`

0 commit comments

Comments
 (0)