https://github.com/d-band/babel-preset-proposal
babel preset for proposals
https://github.com/d-band/babel-preset-proposal
babel-preset babel7 ecmascript proposal
Last synced: 10 months ago
JSON representation
babel preset for proposals
- Host: GitHub
- URL: https://github.com/d-band/babel-preset-proposal
- Owner: d-band
- Created: 2019-07-31T03:32:50.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-04-12T10:11:38.000Z (about 5 years ago)
- Last Synced: 2024-04-28T03:17:10.729Z (about 2 years ago)
- Topics: babel-preset, babel7, ecmascript, proposal
- Language: JavaScript
- Size: 5.86 KB
- Stars: 1
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Babel [proposals](https://babeljs.io/docs/en/plugins-list#tc39-proposals) plugins
=====
## Install
```bash
$ npm install --save-dev babel-preset-proposal
```
## Usage
```json
{
"presets": ["proposal"]
}
```
or with options:
```json
{
"presets": [
["proposal", {
"decorators": { "legacy": false },
"class-properties": { "loose": false },
"pipeline-operator": { "proposal": "smart" }
}]
]
}
```
## Options
```json
{
"class-static-block": true,
"decorators": { "legacy": true },
"class-properties": { "loose": true },
"do-expressions": true,
"export-default-from": true,
"export-namespace-from": true,
"function-bind": true,
"function-sent": true,
"partial-application": true,
"pipeline-operator": { "proposal": "minimal" },
"private-methods": { "loose": true },
"private-property-in-object": { "loose": true },
"record-and-tuple": { "syntaxType": "hash" },
"throw-expressions": true
}
```