preact-cli: Can't use async functions and generators
I’ve found that regeneratorRuntime
is disabled.
I’m trying to run react-coroutine in the setup of preact and preact-cli but I’m not able to use async functions. Am I missing some point of the configuration or it is not yet implemented? Thank you in advance.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 21 (8 by maintainers)
there’s
fast-async
as well, don’t know how big that is thoThis will be fixed by #56 where users will be able to extend babel configuration and remove
transform-regenerator
from excluded plugins.I had planned to add an alternative babel setup for async functions and generators, since Regenerator Runtime is around double the size of the demo applications. I’d be open to enabling it if it was only bundled in conditionally, though. Maybe via Babel’s runtime transform?