-
-
Notifications
You must be signed in to change notification settings - Fork 61
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
polyfill-corejs3 won't polyfill some Promise static methods with method: "usage-pure" #105
Comments
...or |
Does this issue mean that |
That means that |
@zloirock Oh, thank you so much :) Then I think I will pick |
I've been experimenting with
polyfill-corejs3
a bit and tried the following setup (also on this repo https://github.com/giniyat202/babel-polyfill-promise):.browserslist:
.babelrc:
input.js:
I'm expecting both
Promise.allSettled
andPromise.any
to be polyfilled. However, this is not the case here.expected output:
actual output:
usage-global
correctly provides the two missing polyfills.I've noticed that these methods are defined without a
pure
reference:babel-polyfills/packages/babel-plugin-polyfill-corejs3/src/built-in-definitions.js
Lines 338 to 350 in fa4f9f3
I've tried passing
"promise/all-settled"
and"promise/any"
there and I started seeing correct output.The text was updated successfully, but these errors were encountered: