Closed Buszmen closed 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
zlFetch
The problem is only with the last line in index.js module.exports.zlFetch = zlFetch
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
Should be fixed now. Let me know if you still get an error
I'd like to use rollup.js module bundler, but there is a slight problem when importing the library. I get an error:
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: