Babel preset for upcoming JavaScript features


License
MIT
Install
npm install babel-preset-upcoming@7.4.1

Documentation

babel-preset-upcoming

Babel preset for upcoming plugins

CircleCI npm dependencies

Similar to @babel/preset-stage-0, without You must pass the "decoratorsLegacy": true option, You must pass the 'pipelineProposal' option, and all future errors.

Plugin dependencies are fixed in this preset, and before upgrading, we will ensure all required plugin options have default value, so that upgrading this preset won't break your builds.

Default options is also more aggressive:

{loose: true, useBuiltIns: true, pipelineProposal: 'minimal'}

Class properties and decorators are not included.

Install

Using npm:

npm install --save-dev babel-preset-upcoming

Options

{
  //Top level options will be applied to all applicable plugins
  loose: true,
  useBuiltIns: true,
  pipelineProposal: true,

  //Plugin specific options overrides others
  '@babel/proposal-object-rest-spread': {
    loose: true
  }
}