UNPKG

@whatwg-node/fetch

Version:

Cross Platform Smart Fetch Ponyfill

17 lines (15 loc) 291 B
function isNextJs() { return Object.keys(globalThis).some(key => key.startsWith('__NEXT')) } module.exports = function shouldSkipPonyfill() { if (globalThis.Deno) { return true } if (globalThis.Bun) { return true } if (isNextJs()) { return true } return false }