Babel preset for all es2015 plugins, with allowTopLevelThis enabled
$ npm install --save-dev babel-preset-es2015-riot
.babelrc
{
"presets": ["es2015-riot"]
}
$ babel script.js --presets es2015-riot
require("babel-core").transform("code", {
presets: ["es2015-riot"]
});