Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Export default property in CommonJS and global object
In Babel 5, the ES6 default property was exported as both default property under the CommonJS export (module.exports) and global object (in UMD wrapper, on browser). With babel 6 this behaviour was changed (babel/babel#2212) and now using library requires e.g. require("react-modal").default instead of just require("react-modal") ReactModal.default instead of ReactModal This babel plugin restores the old behaviour.
- Loading branch information