Skip to content

Commit

Permalink
add readme section for loggingDebug support (#1038)
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung authored Sep 16, 2024
1 parent a0c450d commit b582028
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,20 @@ This loader also supports the following loader-specific option:

## Troubleshooting

### Enable debug mode logging

Specify the webpack option [`stats.loggingDebug`](https://webpack.js.org/configuration/stats/#statsloggingdebug) to output verbose debug logs.

```js
// webpack.config.js
module.exports = {
// ...
stats: {
loggingDebug: ["babel-loader"]
}
}
```

### babel-loader is slow!

Make sure you are transforming as few files as possible. Because you are probably matching `/\.m?js$/`, you might be transforming the `node_modules` folder or other unwanted source.
Expand Down

0 comments on commit b582028

Please sign in to comment.