Re:Bluebird in the wild: Advanced promise-based workflows
by untog on Tuesday April 19, 2016 @01:36PM
(#11528647)
One thing I was surprised to discover is that promisifyAll alters the original object - which is actually great for ES6 imports. So:
works great.
[ Parent
| on HN ]
Re:Bluebird in the wild: Advanced promise-based workflows
by altano on Tuesday April 19, 2016 @02:15PM
(#11528947)
That probably won't work when you switch from Babel=>ES5 to Babel=>ES6 (http://www.2ality.com/2015/07/es6-module-exports.html?m=1) as ES6 bindings are immutable bindings to the actual values in the module instead of copies.