Can’t require() default export value in Babel 6.x
TL;DR You have to use const app = require(‘./app’).default; app(); Explanation Babel 5 used to have a compatibility hack for export default: if a module contained only one export, and it was a default export, it was assigned to module.exports. So, for example, your module app.js export default function () {} would be transpiled to … Read more