-
-
Notifications
You must be signed in to change notification settings - Fork 60
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
fix: Cannot polyfilled on optional chains #221
fix: Cannot polyfilled on optional chains #221
Conversation
@liuxingbaoyu @JLHwung I added a commit to also support |
packages/babel-plugin-polyfill-corejs3/test/fixtures/usage-pure/optional-chaining/output.mjs
Outdated
Show resolved
Hide resolved
Hold on, there are a few more bugs. |
Ok, it should be good now :) |
c5aa462
to
f2676a8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That’s awesome, thank you!
((_context14 = a.b) == null ? void 0 : _toSortedInstanceProperty(_context14.c))?.d.e; | ||
_Array$from(x); | ||
_Array$from?.(x); | ||
_Array$from?.(x).c; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Non-blocking: Maybe we can compile to _Array$from(x)
?
Fixes: babel/babel#16845