-
-
Notifications
You must be signed in to change notification settings - Fork 80
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
The preferNative option doesn't work #321
Comments
Two thoughts:
|
Any updates on this? Just tried using the Fwiw I've tried both v7.0.0 and v8.0.1. |
Your build doesn’t meet the criteria for the polyfill to not be included |
Hmmm the docs feel a bit misleading then?
Makes it sound like this config option determines whether the polyfill should early exit and not be used if the browser already supports it.
Feels more like documentation around when the polyfill will be included in your bundle, not whether it's applied though. Anywho thanks for confirming this @nlfurniss. |
Yup, totally see how this is not 100% clear. I'll put up a PR to clarify that the polyfill is included if any of the babel targets require |
When I set
preferNative: true
, in a build that includes the polyfill, fetch always uses the polyfill code.The text was updated successfully, but these errors were encountered: