oligot / rollup-plugin-nodent

Rollup plugin for ES2017 async/await keywords
27 stars 2 forks source link

Support generators? #1

Closed binarykitchen closed 7 years ago

binarykitchen commented 7 years ago

Would be great since buble doesn't support that yet and makes it hard for me to use with rollupjs in my branch.

oligot commented 7 years ago

nodent is not intended to transform generators code (only async/await).

While nodent can transform async/await to generators, it is not recommended in the doc as the performance is quite poor.

If you want to "polyfill" generators, you should have a look at regenerator. There is even a rollup plugin (note that I haven't tested it).

binarykitchen commented 7 years ago

ah, cool, thanks for the links!