feat: add why-did-you-render

This commit is contained in:
Tristan Yang
2022-08-31 22:14:32 +08:00
parent 65f8917657
commit 91254d0fbd
5 changed files with 22 additions and 2 deletions
+3 -1
View File
@@ -317,7 +317,9 @@ module.exports = function (webpackEnv) {
[
require.resolve("babel-preset-react-app"),
{
runtime: hasJsxRuntime ? "automatic" : "classic"
runtime: hasJsxRuntime ? "automatic" : "classic",
development: process.env.NODE_ENV === "development",
importSource: "@welldone-software/why-did-you-render"
}
]
],