Skip to content

Commit 78065e6

Browse files
committed
Add boolean filter to babel plugins
1 parent de556af commit 78065e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-scripts/config/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ module.exports = function(webpackEnv) {
421421
},
422422
},
423423
isEnvDevelopment && require.resolve('react-refresh/babel'),
424-
],
424+
].filter(Boolean),
425425
],
426426
// This is a feature of `babel-loader` for webpack (not Babel itself).
427427
// It enables caching results in ./node_modules/.cache/babel-loader/

0 commit comments

Comments
 (0)