Closed julienw closed 7 years ago
Note: I did this patch because I wanted to use co-mocha to make it easier to write asynchronous tests in my other patch. Because this uses generators that mocha changes, I'd would have needed to install babel's polyfills... which is really unneeded in node6 :)
r? @ferjm
@ferjm I can't merge, even accepted PR :)
lol... you are right, I'll add you as contributor to the repo
This change makes babel configuration dependant on the node version we use. With node 6 it will only transform ES6 modules to CommonJS modules, because node 6 supports mostly all of modern JavaScript.
Using the
env
presets makes it very easy to upgrade later and use some new stuff even if Node doesn't support it yet.