-
Notifications
You must be signed in to change notification settings - Fork 101
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
Is there a Babel preset for Ringo (Rhino?) #418
Comments
Not yet or not known, sorry. |
I went and started https://github.com/pastelmind/babel-preset-rhino. Turns out it's a bigger hassle than I expected. I need help. Since RingoJS users may be interested in this project, I figured I'd ask here. I created a Babel preset that piggybacks onto @babel/preset-env. I intentionally omitted the Nearly all of the syntactic transforms are covered. I made some major assumptions, though, and I'd appreciate it if someone else reviewed them. Babel 7 requiredI don't want to bother with older versions of Babel.
|
For what it's worth, I also investigated a different transpiler named Bublé. It is much more limited than Babel, but simpler to configure and use. I published buble-config-rhino which provides an optimized config for Rhino. Notes (and this should go in the README for buble-config-rhino):
Other transpilers I examined:
|
Also see mozilla/rhino#661 and babel/babel#13448 |
I'd like to use modern ES features and transpile them. I can easily do so by using
@babel/preset-env
with no options to transpile everything down to ES5. However, it means I'm missing out on some ES2015 features that are already supported in Ringo, such asfor...of
loops, arrow functions, etc.Is there a Babel preset specifically tailored for Ringo (Rhino)? Or perhaps a Babel alternative that can be configured to target Ringo?
The text was updated successfully, but these errors were encountered: