blob: d7b73d0030b4a456c355747bf5f47e8534579bcc [file] [log] [blame]
const fetchNode = require('./node-ponyfill')
const fetch = fetchNode.fetch.bind({})
fetch.polyfill = true
if (!global.fetch) {
global.fetch = fetch
global.Response = fetchNode.Response
global.Headers = fetchNode.Headers
global.Request = fetchNode.Request
}