Skip to content
This repository was archived by the owner on Sep 8, 2021. It is now read-only.

Add isomorphic-fetch for node (fixes #7) #23

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

NotWoods
Copy link

@NotWoods NotWoods commented Jun 7, 2021

Polyfills the fetch API in Node.js. This is done with a wrapper script to avoid a relatively large Babel output.

I chose to use isomorphic-fetch so that importing using the main field will still work in browsers, and simply pull in the polyfill. Bundlers should prioritize the browser field.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant