Babel preset for all es2015 plugins, modified to enable
--loose es6.modules
.
The code modifies babel-preset-es2015 just a little bit. I had to mix es2015 modules with old-school node modules. This is what I came up with.
$ npm install --save-dev babel-preset-es2015-mod
.babelrc
{
"presets": ["es2015-mod"]
}
$ babel script.js --preset es2015-mod
require("babel-core").transform("code", {
presets: ["es2015-mod"]
});