-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
window.fetch method implementation #25
Comments
It's missing because currently core-js adds only cross-platform features, not browser-only or server-only. I will add it if i will add modules for network and DOM. |
this makes sense. |
I'll think about it. |
@chicoxyzzy Think about what else can be added to the client and server shims. |
It would be really nice to have core-js shim this function in both node and the browser. |
Because of the large number of requests, I reopen it. Maybe I will add it, but it's not priority task. |
I'm not sure what I am getting my self into, but perhaps I could help out with this..? Since I care about it. |
Yep, you can add PR with implementation as |
Why you need |
I think In any case, GitHub has a fetch polyfill that's fairly popular. |
Please don't add any DOM related stuff since it would break non DOM js enviroments. |
It might make sense to have a separate core-dom report for DOM related polyfills. I say this after having requested |
It's 2017 and still no updates regarding this. Yeah, it's not a big problem since fetch-polyfill is available, but imo it's more convenient to have one package installed rather that two. |
It'd be also much more convenient because then babel-polyfill could automatically polyfill fetch depending on your browserlist so you wouldn't have to add/remove the fetch polyfill depending on your target browsers... |
Actually babel-polyfill could do this using any other polyfill. Not sure that it should though but it's better to create such issue (if it doesn't exist yet) in Babel repo |
It's 2018 and still no updates regarding this. Yeah, it's not a big problem since fetch-polyfill is available, but imo it's more convenient to have one package installed rather that two. |
@precompiled I think the original logic still holds. The |
@loganfsmyth BTW core-js already includes polyfills for non-ES things |
That's true, but I also think the average dev considers |
IMO developers expect that babel-polyfill will cover everything based on browserslist config. I see the reason why fetch is not in core-js, but considering that timeouts and DOM iterations are covered, missing fetch becomes non obvious issue. |
same issue + 1 |
fetch has now (experimentally) been added to node in nodejs/node@6ec2253. |
Expect this polyfills |
https://github.com/zloirock/core-js/blob/master/CONTRIBUTING.md |
@1593292349 what is your use case? Otherwise I think the issue should be closed. |
just noticed
core-js
missingfetch
polyfillsubjectively best existing implemetation https://github.com/github/fetch
The text was updated successfully, but these errors were encountered: