UNPKG

babel-plugin-async-to-promises

Version:

Transpile ES7 async/await to vanilla ES6 Promise chains

16 lines (15 loc) 302 B
function test() { return Promise.resolve().then(function () { return Promise.resolve().then(function () { return a(); }).then(function () { return b(); }).then(function () { c(); d(); return e(); }); }).then(function (_resp) { test(_resp); }); }