Enable async iterators in Babel configuration
See original GitHub issueRecently, I tried to write an async generator for a project I’m working on. Unfortunately it doesn’t work because Create React App isn’t configured to transpile them by default. As far as I know, the only way to get this working is by ejecting and adding the plugin—is this correct?
Async iteration is a stage 3 proposal now, so it’s unlikely it will change. Actually, I have no idea what kind of standard or process exists for changing the default Babel configuration in Create React App, so I apologize if this isn’t an appropriate request or if the issue is a lot more complicated than I think. But I just figured I’d raise the issue…
Just for completeness, here’s a simple version of what I was trying to do. In this repo, I’ve ejected, installed babel-plugin-transform-async-generator-functions
, and added the transform-async-generator-functions
plugin to the package.json
.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:3
- Comments:16 (6 by maintainers)
is anyone working on this now that we’re on babel 7? I’m happy to submit a PR.
This is probably only going to be released in Babel 7.