zellwk / zl-fetch

A library that makes the Fetch API a breeze
MIT License
285 stars 34 forks source link

Support rollup.js - duplicate export error #3

Closed Buszmen closed 5 years ago

Buszmen commented 5 years ago

I'd like to use rollup.js module bundler, but there is a slight problem when importing the library. I get an error:

Error: Duplicate export zlFetch

The problem is only with the last line in index.js module.exports.zlFetch = zlFetch

I think this can be solved by replacing last 3 lines with that:

zlFetch.zlFetch = zlFetch
module.exports = zlFetch
module.exports.default = zlFetch
zellwk commented 5 years ago

Should be fixed now. Let me know if you still get an error