babel-preset-es2020

1.0.2 • Public • Published

babel-preset-es2020

npm version downloads js-standard-style

Babel preset for a subset of ES6, because in hindsight we can do without most of it

Install

$ npm install --save-dev babel-preset-es2020

Usage

Via .babelrc (Recommended)

.babelrc

{
  "presets": ["es2020"]
}

Via CLI

$ babel script.js --presets es2020

Via Node API

require('babel-core').transform('code', {
  presets: ['es2020']
})

See Also

  • es2020 - browserify transform for a subset of ES6

License

MIT

Package Sidebar

Install

npm i babel-preset-es2020

Weekly Downloads

878

Version

1.0.2

License

MIT

Last publish

Collaborators

  • bendrucker
  • ahdinosaur
  • yoshuawuyts