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

fix: Cannot polyfilled on optional chains #221

Merged
merged 7 commits into from
Sep 23, 2024

Conversation

liuxingbaoyu
Copy link
Member

@nicolo-ribaudo
Copy link
Member

@liuxingbaoyu @JLHwung I added a commit to also support usage-pure, could you take a look?

@nicolo-ribaudo
Copy link
Member

Hold on, there are a few more bugs.

@nicolo-ribaudo
Copy link
Member

Ok, it should be good now :)

@nicolo-ribaudo nicolo-ribaudo force-pushed the fix-OptionalMemberExpression branch from c5aa462 to f2676a8 Compare September 20, 2024 14:15
Copy link
Member Author

@liuxingbaoyu liuxingbaoyu left a 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;
Copy link
Member Author

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)?

@nicolo-ribaudo nicolo-ribaudo merged commit bacb1df into babel:main Sep 23, 2024
7 checks passed
@epmatsw
Copy link

epmatsw commented Nov 11, 2024

Would it be possible to get a publish of this package to get the fix out into the world?

@nicolo-ribaudo
Copy link
Member

Yes :)

@epmatsw
Copy link

epmatsw commented Nov 11, 2024

Thank you so much and for all the previous work on this as well!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: toSorted is not polyfilled on optional chains without plugin-transform-optional-chaining
4 participants