bpb

babel-preset-bluebird

Transforms *async/await* and *Promise* to bluebird

Showing:

Popularity

Downloads/wk

201

GitHub Stars

9

Maintenance

Last Commit

5yrs ago

Contributors

0

Package

Dependencies

2

Size (min+gzip)

100.0KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

babel-preset-bluebird

This package combines async-to-bluebird and promise-to-bluebird into one preset.

Usage

  1. Install: npm install --save-dev babel-preset-bluebird
  2. Add babel-preset-bluebird to your .babelrc file:
{
    "presets": ["bluebird"]
}
  1. Install bluebird: npm install --save bluebird

With babel-plugin-transform-runtime enabled

  1. Install: npm install --save-dev babel-plugin-transform-async-to-bluebird babel-plugin-transform-promise-to-bluebird
  2. Add the plugins to your .babelrc file:
{
    "plugins": [
        "transform-async-to-bluebird",
        "transform-promise-to-bluebird",
        "transform-runtime"
    ]
}
  1. Install bluebird: npm install --save bluebird

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100