We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 50b6276 + 8a57ed7 commit c8e55fbCopy full SHA for c8e55fb
packages/isomorphic-unfetch/index.js
@@ -1,5 +1,5 @@
1
module.exports = global.fetch = global.fetch || (
2
typeof process=='undefined' ? (require('unfetch').default || require('unfetch')) : (function(url, opts) {
3
- return require('node-fetch')(url.replace(/^\/\//g,'https://'), opts);
+ return (require('node-fetch').default || require('node-fetch'))(url.replace(/^\/\//g,'https://'), opts);
4
})
5
);
0 commit comments