diff --git a/src/content/configuration/stats.mdx b/src/content/configuration/stats.mdx index 7f18e8fa6047..75d9e9e40015 100644 --- a/src/content/configuration/stats.mdx +++ b/src/content/configuration/stats.mdx @@ -444,6 +444,21 @@ module.exports = { }; ``` +### stats.errorCause + +`boolean` `"auto"` + +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`. + +```javascript +module.exports = { + //... + stats: { + errorCause: true, + }, +}; +``` + ### stats.errorDetails `boolean` `"auto"` @@ -459,6 +474,23 @@ module.exports = { }; ``` +### stats.errorErrors + +`boolean` `"auto"` + +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`. + +Useful when a single error is composed of multiple underlying errors, providing deeper visibility into grouped error structures. + +```javascript +module.exports = { + //... + stats: { + errorErrors: true, + }, +}; +``` + ### stats.errorStack `boolean = true`