babel-preset-bluebird

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

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
babel-preset-bluebird
901.0.16 years ago6 years agoMinified + gzip package size for babel-preset-bluebird in KB

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