bbarr/medium

Does this work with generator/yield syntax as well?

Closed this issue · 1 comments

I'm curious, because Babel 6 async/await is currently broken, and I want to write code in generator/yield format that I can convert later, so I thought if I can find a CSP channel lib that is compatible with both formats then it'll be easier.

bbarr commented

@trusktr Sorry to say, no, this won't work with generator/yield only. The core explicitly relies on the async/await keywords.

I am using async/await and Babel 6 on a few projects right now without problem.. I tend to use Babel presets: 'es2015' and 'stage-1', instead of loading things as individual plugins, if that helps you at all. And noting that 12 days has gone by since you wrote this, perhaps it those issues are fixed already.. hope so!