babel-preset-proposal
v1.1.2
Published
babel presets for proposals
Downloads
30
Maintainers
Readme
Babel proposals plugins
Install
$ npm install --save-dev babel-preset-proposal
Usage
{
"presets": ["proposal"]
}
or with options:
{
"presets": [
["proposal", {
"decorators": { "legacy": false },
"class-properties": { "loose": false },
"pipeline-operator": { "proposal": "smart" }
}]
]
}
Options
{
"decorators": { "legacy": true },
"class-properties": { "loose": true },
"do-expressions": true,
"export-default-from": true,
"export-namespace-from": true,
"function-bind": true,
"function-sent": true,
"logical-assignment-operators": true,
"nullish-coalescing-operator": true,
"numeric-separator": true,
"optional-chaining": true,
"partial-application": true,
"pipeline-operator": { "proposal": "minimal" },
"private-methods": true,
"throw-expressions": true
}