From b582028d51b94ae97713aae5ce6f8cb81c7ed4fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hu=C3=A1ng=20J=C3=B9nli=C3=A0ng?= Date: Mon, 16 Sep 2024 07:10:44 -0400 Subject: [PATCH] add readme section for loggingDebug support (#1038) --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 377a6f2f..ca624447 100644 --- a/README.md +++ b/README.md @@ -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.