Closed anthony-redFox closed 6 years ago
@Yomguithereal please, take a look
@anthony-redFox I think I prefer to drop the export default class Baobab
in index.js
and switch to module.exports = Baobab
in the same file to save us the dependency. What do you think?
Sorry @anthony-redFox. I will close this PR, push a commit and release a version asap so people can continue to install the lib unbothered. Thank you very much for your work. Sorry for not being able to merge.
@Yomguithereal it is ok. After your fix ES6 Modules doesn't work, but in version 2.5.1 it worked.
So we need to discuss how to support ES6 Modules for baobab.
Indeed. What do you propose? Should we use one of the package.json fields such as js:next
module
and such?
After update babel package added default export. https://stackoverflow.com/questions/33505992/babel-6-changes-how-it-exports-default https://github.com/babel/babel/issues/2212