To use export default
with Babel, you can do 1 of the following:
require("myStuff").default
npm install babel-plugin-add-module-exports --save-dev
Or 3:
//myStuff.js
var thingToExport = {};
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = thingToExport;