Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fetch API feature request #2113

Closed
camsong opened this issue Jul 29, 2015 · 2 comments
Closed

Fetch API feature request #2113

camsong opened this issue Jul 29, 2015 · 2 comments
Labels
outdated A closed issue/PR that is archived due to age. Recommended to make a new issue

Comments

@camsong
Copy link

camsong commented Jul 29, 2015

The Fetch API provides an interface for fetching resources, would be a replacement of XMLHttpRequest. Is there any plan to support that?

@keithamus
Copy link
Member

Hey @camsong! fetch isn't part of EcmaScript, its part of the web platform. I'm not sure Babel really supports polyfiling the web platform/DOM. So you'd need to pull in a manual polypill. I've used https://github.com/github/fetch which is really nice. https://github.com/matthew-andrews/isomorphic-fetch works on the server side too.

@sebmck
Copy link
Contributor

sebmck commented Jul 29, 2015

@keithamus is completely correct. Babel just deals with syntax. If you want a polyfill then feel free to use core-js and github/fetch.

@sebmck sebmck closed this as completed Jul 29, 2015
@sebmck sebmck added the invalid label Jul 29, 2015
@lock lock bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Jul 13, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Jul 13, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated A closed issue/PR that is archived due to age. Recommended to make a new issue
Projects
None yet
Development

No branches or pull requests

3 participants