babel-plugin-transform-bluebird-co
replace co with bluebird-co(high performace co) 、 replace Promise with bluebird plugin.
This plugin is aiming to transform base Promise、async/await、co
to high performace Bluebird、Bluebird.coroutine、bluebird-co
.So the suggest usage is use this plugin along with transform-async-to-module-method
;
Installation
npm install bluebird bluebird-co --savenpm install babel-plugin-transform-bluebird-co babel-plugin-transform-async-to-module-method --save-dev
Usage
.babelrc
(Recommended)
Via .babelrc
Development
Requirement global
- NodeJS v5.11.0
- Npm v3.8.6
git clone https://github.com/libotony/babel-plugin-transform-bluebird-cocd babel-plugin-transform-bluebird-conpm install npm test
Thanks
babel-plugin-transform-bluebird
License
MIT