This PR includes 2. from https://github.com/babel/babel-brunch/pull/48
Also, it removes 'es2015' and 'es2016' presets from defaults in favor of babel-preset-env. This solution wouldn't break anything for people who are using no configs and allow them to prevent writing all presets in presets array and just add env option to pick only plugins they needed. Without any specified target it works exactly like babel-preset-latest.
This PR includes 2. from https://github.com/babel/babel-brunch/pull/48 Also, it removes 'es2015' and 'es2016' presets from defaults in favor of babel-preset-env. This solution wouldn't break anything for people who are using no configs and allow them to prevent writing all presets in
presets
array and just addenv
option to pick only plugins they needed. Without any specified target it works exactly like babel-preset-latest.Possible config: