7.4.1 • Published 5 years ago

babel-preset-upcoming v7.4.1

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

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
  }
}