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

Make it possible to use async/await #484

Merged
merged 1 commit into from
Jul 7, 2017
Merged

Make it possible to use async/await #484

merged 1 commit into from
Jul 7, 2017

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented Jul 7, 2017

Enables the babel plugin that transpiles async/await to generator functions,
and load the regenerator runtime so that generator functions work.

Enables the babel plugin that transpiles async/await to generator functions,
and load the regenerator runtime so that generator functions work.
"presets": ["es2015"],
"plugins": [
"transform-async-to-generator",
],
Copy link
Member

Choose a reason for hiding this comment

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

I assume babel loads this as a JS object rather than a JSON file, which is why these trailing commas work?

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 presume that too. Seems to work, anyway.

@kegsay
Copy link
Member

kegsay commented Jul 7, 2017

LGTM

@richvdh richvdh merged commit 753974d into develop Jul 7, 2017
@richvdh richvdh deleted the rav/enable_async branch July 11, 2017 16:39
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.

2 participants