Closed euwest closed 7 years ago
:sadpanda:
tl;dr: export default <thing> transpiles into a module that, when importing via commonJS(i.e. in a node environment), means you have to var thing = require('thing').default();
export default <thing>
var thing = require('thing').default();
If it's important, we can use https://babeljs.io/docs/plugins/transform-es2015-modules-commonjs/
:sadpanda:
tl;dr:
export default <thing>
transpiles into a module that, when importing via commonJS(i.e. in a node environment), means you have tovar thing = require('thing').default();