Compile export extensions to ES2015
$ npm install babel-plugin-transform-export-extensions
.babelrc
(Recommended).babelrc
{
"plugins": ["transform-export-extensions"]
}
$ babel --plugins transform-export-extensions script.js
require("babel-core").transform("code", {
plugins: ["transform-export-extensions"]
});