3 ms·
Thanks diego! Yes, you're totally right. That line is not needed. I'll go in and fix it. But because of how `promisifyAll` works the code would still work the s
by hiphipjorge 11y ago
Thanks diego! Yes, you're totally right. That line is not needed. I'll go in and fix it. But because of how `promisifyAll` works the code would still work the same way :)
- untog 11y agoOne thing I was surprised to discover is that promisifyAll alters the original object - which is actually great for ES6 imports. So: import fs from 'fs'; Promise.promisifyAll(fs); works great.
- altano 11y agoThat 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 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.