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

[corejs3] Do no injected constructor polyfills for static props #201

Merged

Conversation

nicolo-ribaudo
Copy link
Member

The first commit implements the capability, the second one uses it for core-js.

Fixes #80

@nicolo-ribaudo nicolo-ribaudo added the enhancement New feature or request label Jan 25, 2024
@@ -1,7 +1,6 @@
import "core-js/modules/es.array.iterator.js";
import "core-js/modules/es.array-buffer.slice.js";
import "core-js/modules/es.object.to-string.js";
import "core-js/modules/es.typed-array.int8-array.js";
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zloirock Does Int8Array.of(); need this polyfill?

Copy link
Member

@zloirock zloirock Jan 25, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, since in some cases required fixing or complete replacement of typed arrays. In core-js@4 it will not be required since, unlike core-js@3, that relies on the presence of a basic typed arrays support.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I updated the deps list to add it back.

@nicolo-ribaudo nicolo-ribaudo force-pushed the unnecessary-symbol-polyfill branch 5 times, most recently from 9c8eb95 to 34ba89b Compare January 25, 2024 16:08
@liuxingbaoyu
Copy link
Member

If we take this into consideration it might be better to implement "skip sub-paths".
But I thought that would be more complicated, and now it's fine to merge it.

@nicolo-ribaudo nicolo-ribaudo force-pushed the unnecessary-symbol-polyfill branch from 34ba89b to b84bd3d Compare March 8, 2024 16:44
@nicolo-ribaudo nicolo-ribaudo merged commit 444a3b7 into babel:main Mar 8, 2024
7 checks passed
@nicolo-ribaudo nicolo-ribaudo deleted the unnecessary-symbol-polyfill branch March 8, 2024 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Symbol.iterator should not load full Symbol polyfill
3 participants