Skip to content

chpio/babel-preset-bluebird

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published