pradel / create-react-app-esbuild

Use esbuild in your create-react-app for faster compilation, development and tests
MIT License
563 stars 35 forks source link

feat: replace minifier only when used #42

Closed lpillonel closed 3 years ago

lpillonel commented 3 years ago

I added a small test before replacing the minimizer in order to replace it only when it is actually used.

On my setup I currently have an other craco override that remove minification in some cases to speed up the build time. With this change, minification remains disabled as expected.