yola / pixabayjs

A Javascript Client for the Pixabay API
MIT License
17 stars 6 forks source link

"export default" syntax for main package export breaks non-es2015 consumers #40

Closed euwest closed 7 years ago

euwest commented 8 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();

LionOps commented 7 years ago

If it's important, we can use https://babeljs.io/docs/plugins/transform-es2015-modules-commonjs/