Autoprefixer for Babel · Babel


#1

npm install babel-preset-env --save-dev

Check out the many options (especially useBuiltIns to polyfill less)!


This is a companion discussion topic for the original entry at https://babeljs.io/docs/plugins/preset-env/

#2

Does babel-preset-env change the minification from UglifyJS to babili? Therefore, I don’t need to consider adding a plugin for my bundler such as Webpack?

Is it necessary to declare { target: { uglify: true } } if you’re using an UglifyJS plugin in your Webpack config for example?

Also, when do I need to consider using useBuiltIns? Is it recommended?

Thanks!