Babel preset for a subset of ES6, because in hindsight we can do without most of it
$ npm install --save-dev babel-preset-es2020
.babelrc
{
"presets": ["es2020"]
}
$ babel script.js --presets es2020
require('babel-core').transform('code', {
presets: ['es2020']
})
- es2020 - browserify transform for a subset of ES6