babel-preset-bluebird
v1.0.1
Published
Transforms *async/await* and *Promise* to bluebird
Downloads
230
Maintainers
Readme
babel-preset-bluebird
This package combines async-to-bluebird and promise-to-bluebird into one preset.
Usage
- Install:
npm install --save-dev babel-preset-bluebird
- Add babel-preset-bluebird to your .babelrc file:
{
"presets": ["bluebird"]
}
- Install bluebird:
npm install --save bluebird
With babel-plugin-transform-runtime enabled
- 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