babel-preset-es2040
v1.1.1
Published
Babel preset for a subset of ES6
Downloads
150
Maintainers
Readme
babel-preset-es2040
Babel preset for a subset of ES6, because in hindsight we can do without most of it
Install
$ npm install --save-dev babel-preset-es2040
Usage
Via .babelrc
(Recommended)
.babelrc
{
"presets": ["es2040"]
}
Via CLI
$ babel script.js --presets es2040
Via Node API
require('babel-core').transform('code', {
presets: ['es2040']
})
See Also
- es2040 - browserify transform for a subset of ES6
- babel-preset-es2020 - babel preset for more minimal subset