some kind of compatibility shim for 'es2016' for node
anonymous 8dd11fba9b ripped from npm install | 6 tahun lalu | |
---|---|---|
lib | 6 tahun lalu | |
LICENSE | 6 tahun lalu | |
Readme.md | 6 tahun lalu | |
package.json | 6 tahun lalu |
This module only support one feature of ES2016: async, you can use preset: es2015-node5, stage3 to get the same effect.
Babel preset to make node@5 ES2016 compatible.
Node@5 has great ES2015 support, this module just adds missing features:
And ES2016 support
$ npm install --save-dev babel-preset-es2016-node5
.babelrc
(recommended).babelrc
{
"presets": ["es2016-node5"]
}
$ babel script.js --preset es2016-node5
require('babel-core').transform('code', {
presets: ['es2016-node5']
})