Skip to content
Prev Previous commit
Next Next commit
Add boolean filter to babel plugins
  • Loading branch information
charrondev committed Mar 31, 2020
commit 78065e6e34dfd9cb4951bf2b01be653ccba5672f
2 changes: 1 addition & 1 deletion packages/react-scripts/config/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ module.exports = function(webpackEnv) {
},
},
isEnvDevelopment && require.resolve('react-refresh/babel'),
],
].filter(Boolean),
],
// This is a feature of `babel-loader` for webpack (not Babel itself).
// It enables caching results in ./node_modules/.cache/babel-loader/
Expand Down