Today I was working on a relatively non-involved es2015 project, which I was transpiling using buble and which was erroring out with Cannot find module 'babel-runtime/regenerator. Looking at the code I noticed usage of async/await, which buble does not support. Hence, this pull request version, which uses plain Promises. After testing the version with babel and buble, everything seems to be working fine and the test suit produces the same result.
Today I was working on a relatively non-involved es2015 project, which I was transpiling using buble and which was erroring out with
Cannot find module 'babel-runtime/regenerator
. Looking at the code I noticed usage ofasync/await
, which buble does not support. Hence, this pull request version, which uses plain Promises. After testing the version with babel and buble, everything seems to be working fine and the test suit produces the same result.