-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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 for --target ES2018 #20463
Comments
// CC: @bterlson |
// CC: @benbraou |
Just keep in mind that until a proposal shows up here it's not on the train for 2018. |
Promise.prototype.finally, rest/spread properties and async iterable made it. Optional catch binding didn't. |
@mhegazy optional catch binding is still stage 3 (https://github.com/tc39/proposals) and browserify can't compile it. This transform should be kept with es2018. |
@falsandtru I've removed |
Thanks! |
Is there any progress on this? Node.js 10.0.0 now supports 100% of Using Would love to contribute PRs if there is a clear path forward 🙌 |
A PR would be appreciated. we need to split the transforms to their own file, and pipe the target flag through. |
Haven't worked with the TS code base before, but would be happy to start! If you have it in your head, some quick links to which files should be changed would be very much appreciated ❤️ |
here is the PR that added ES2017 target, you can use it as a reference: #11407 |
and another feature: #23801 could(maybe) split too |
Now that ES2019 is around the corner, it would be a good time for this to be worked on, heck someone made a PR for ES2019 already. |
As TC39 gets ready to finalize ES2018, we should allow pass through for some transformation now only enabled under
--target ESNext
, here is the list:Disable transforms for:
for await ... of
We also need some new lib definitions:
The support for
--target ES2018
was added in #20385The text was updated successfully, but these errors were encountered: