Skip to content

Commit 8a57ed7

Browse files
author
Seiry Yu
committed
fix a require error in Rax babel config scenes
1 parent 92d9203 commit 8a57ed7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module.exports = global.fetch = global.fetch || (
22
typeof process=='undefined' ? (require('unfetch').default || require('unfetch')) : (function(url, opts) {
3-
return require('node-fetch')(url.replace(/^\/\//g,'https://'), opts);
3+
return (require('node-fetch').default || require('node-fetch'))(url.replace(/^\/\//g,'https://'), opts);
44
})
55
);

0 commit comments

Comments
 (0)