Babel preset that uses modify-babel-preset to modify babel-preset-es2015 and enable loose mode where available.
Install both this preset, and the core 'babel-preset-es2015' that it modifies:
$ npm install --save-dev babel-preset-es2015-loose babel-preset-es2015
.babelrc
{
"presets": ["es2015-webpack-loose"]
}
$ babel script.js --presets es2015-webpack-loose
require("babel-core").transform("code", {
presets: ["es2015-webpack-loose"]
})