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

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
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
3 participants