This package combines async-to-bluebird and promise-to-bluebird into one preset.
- Install:
npm install --save-dev babel-preset-bluebird
- Add babel-preset-bluebird to your .babelrc file:
{
"presets": ["bluebird"]
}
- Install bluebird:
npm install --save bluebird
- Install:
npm install --save-dev babel-plugin-transform-async-to-bluebird babel-plugin-transform-promise-to-bluebird
- Add the plugins to your .babelrc file:
{
"plugins": [
"transform-async-to-bluebird",
"transform-promise-to-bluebird",
"transform-runtime"
]
}
- Install bluebird:
npm install --save bluebird