UNPKG

babel-plugin-async-to-promises

Version:

Transpile ES7 async/await to vanilla ES6 Promise chains

15 lines (13 loc) 300 B
function test() { var test; return Promise.resolve().then(function () { return a() ? b() : c(); }).then(function (_resp) { test = _resp; return d() ? Promise.resolve().then(function () { return e(); }).then(function (_resp) { return _resp.ok; }) : f(); }); }