Skip to content

Latest commit

 

History

History
30 lines (24 loc) · 866 Bytes

README.md

File metadata and controls

30 lines (24 loc) · 866 Bytes

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