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

Support more transpiling targets #14831

Open
zloirock opened this issue Aug 5, 2022 · 14 comments
Open

Support more transpiling targets #14831

zloirock opened this issue Aug 5, 2022 · 14 comments

Comments

@zloirock
Copy link
Member

zloirock commented Aug 5, 2022

Let's take a look at what is allowed by Babel transpiling targets:

android
chrome
edge
electron
firefox
ie
ios
node
opera
rhino
safari
samsung

core-js allow more targets and contains compat data for:

android
bun
chrome
chrome-android
deno
edge
electron
firefox
firefox-android
hermes
ie
ios
node
opera
opera-android
phantom
quest
react-native
rhino
safari
samsung

I can't understand why Babel still does not allow at least significant targets such as deno, bun, hermes...

compat-table already contains data for hermes, it's not a big problem to add compat data / runner or at least mapping for deno and bun.

@nicolo-ribaudo
Copy link
Member

nicolo-ribaudo commented Aug 6, 2022

Do you know if there are ready mappings for Deno and bun like electron-to-chromium?

Also, bun is still very experiential.

@zloirock
Copy link
Member Author

zloirock commented Aug 6, 2022

Automatically generated mapping is not available. However, it's available on MDN, engine_version field. Or in core-js-compat, but for internal usage.

@ljharb

This comment was marked as off-topic.

@zloirock

This comment was marked as off-topic.

@ljharb

This comment was marked as off-topic.

@zloirock

This comment was marked as off-topic.

@ljharb

This comment was marked as off-topic.

@zloirock

This comment was marked as off-topic.

@ljharb

This comment was marked as off-topic.

@zloirock

This comment was marked as off-topic.

@ljharb

This comment was marked as off-topic.

@zloirock

This comment was marked as off-topic.

@chenyulun
Copy link

#15612

@chenyulun
Copy link

chenyulun commented May 6, 2023

Add compat data for Hermes: zloirock/core-js#1099

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

No branches or pull requests

5 participants