UNPKG

babel-plugin-async-to-promises

Version:

Transpile ES7 async/await to vanilla ES6 Promise chains

18 lines (15 loc) 294 B
function test() { var _temp; return Promise.resolve().then(function () { _temp = {}; _temp.a = a(); return b(); }).then(function (_resp) { _temp.b = _resp; _temp.c = c(); return d(); }).then(function (_resp) { _temp.d = _resp.ok; return _temp; }); }