Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions src/content/configuration/stats.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand All @@ -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`
Expand Down