https://github.com/dk00/babel-preset-upcoming
https://github.com/dk00/babel-preset-upcoming
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dk00/babel-preset-upcoming
- Owner: dk00
- License: unlicense
- Created: 2020-10-28T05:18:54.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-10-28T05:19:09.000Z (over 5 years ago)
- Last Synced: 2025-11-02T08:17:24.595Z (7 months ago)
- Language: LiveScript
- Size: 90.8 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# babel-preset-upcoming
Babel preset for upcoming plugins
[](https://circleci.com/gh/dk00/babel-preset-upcoming)
[](https://npm.im/babel-preset-upcoming)
[](https://david-dm.org/dk00/babel-preset-upcoming)
Similar to [@babel/preset-stage-0](https://babeljs.io/docs/en/next/babel-preset-stage-0.html), 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:
```js
{loose: true, useBuiltIns: true, pipelineProposal: 'minimal'}
```
Class properties and decorators are not included.
## Install
Using npm:
```sh
npm install --save-dev babel-preset-upcoming
```
## Options
```js
{
//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
}
}
```