babel-preset-upcoming
Babel preset for upcoming plugins
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
}
}