I assume this preset should solve the problem:
babel-preset-async-to-bluebird
After installation with the usual:
$ npm install --save-dev babel-preset-async-to-bluebird
The following code using the Node API will enable this preset:
require("babel-core").transform("code", {
presets: ["async-to-bluebird"]
});
slightly adapted from readme.md written by eknkc
source
share