babel-preset-proposal-typescript
Advanced tools
Comparing version 1.2.3 to 1.2.4
@@ -5,2 +5,4 @@ # Changelog | ||
### [1.2.4](https://github.com/JounQin/babel-preset-proposal-typescript/compare/v1.2.3...v1.2.4) (2019-08-18) | ||
### [1.2.3](https://github.com/JounQin/babel-preset-proposal-typescript/compare/v1.2.2...v1.2.3) (2019-08-18) | ||
@@ -7,0 +9,0 @@ |
@@ -21,3 +21,3 @@ import syntaxDecorators from '@babel/plugin-syntax-decorators' | ||
const { legacyDecorators = true, pipelineOperator = 'minimal' } = opts | ||
const { decoratorsLegacy = true, pipelineOperator = 'minimal' } = opts | ||
@@ -29,3 +29,3 @@ return { | ||
{ | ||
legacy: legacyDecorators, | ||
legacy: decoratorsLegacy, | ||
}, | ||
@@ -32,0 +32,0 @@ ], |
@@ -44,4 +44,4 @@ "use strict"; | ||
api.assertVersion(7); | ||
var _opts$legacyDecorator = opts.legacyDecorators, | ||
legacyDecorators = _opts$legacyDecorator === void 0 ? true : _opts$legacyDecorator, | ||
var _opts$decoratorsLegac = opts.decoratorsLegacy, | ||
decoratorsLegacy = _opts$decoratorsLegac === void 0 ? true : _opts$decoratorsLegac, | ||
_opts$pipelineOperato = opts.pipelineOperator, | ||
@@ -51,3 +51,3 @@ pipelineOperator = _opts$pipelineOperato === void 0 ? 'minimal' : _opts$pipelineOperato; | ||
plugins: [[_pluginSyntaxDecorators["default"], { | ||
legacy: legacyDecorators | ||
legacy: decoratorsLegacy | ||
}], _pluginSyntaxDynamicImport["default"], _pluginSyntaxTypescript["default"], _pluginProposalClassProperties["default"], _pluginProposalDoExpressions["default"], _pluginProposalFunctionBind["default"], _pluginProposalFunctionSent["default"], _pluginProposalJsonStrings["default"], _pluginProposalLogicalAssignmentOperators["default"], _pluginProposalNullishCoalescingOperator["default"], _pluginProposalOptionalChaining["default"], _pluginProposalPartialApplication["default"], [_pluginProposalPipelineOperator["default"], { | ||
@@ -54,0 +54,0 @@ proposal: pipelineOperator |
{ | ||
"name": "babel-preset-proposal-typescript", | ||
"version": "1.2.3", | ||
"version": "1.2.4", | ||
"description": "Yet another Babel preset for TypeScript, only transforms proposals which TypeScript does not support now.", | ||
@@ -52,4 +52,3 @@ "module": "esm.js", | ||
"devDependencies": { | ||
"@1stg/babel-preset": "^0.1.0", | ||
"@1stg/eslint-config": "^0.1.0", | ||
"@1stg/eslint-config": "^0.2.0", | ||
"@1stg/husky-config": "^0.1.0", | ||
@@ -56,0 +55,0 @@ "@1stg/lint-staged": "^0.1.0", |
@@ -13,11 +13,10 @@ # babel-preset-proposal-typescript | ||
- [babel-preset-proposal-typescript](#babel-preset-proposal-typescript) | ||
- [Enabled proposal plugins](#enabled-proposal-plugins) | ||
- [Install](#install) | ||
- [Usage](#usage) | ||
- [Via `.babelrc` (Recommended)](#via-babelrc-recommended) | ||
- [Via CLI](#via-cli) | ||
- [Via Node API](#via-node-api) | ||
- [Via webpack](#via-webpack) | ||
- [Options](#options) | ||
- [Enabled proposal plugins](#enabled-proposal-plugins) | ||
- [Install](#install) | ||
- [Usage](#usage) | ||
- [Via `.babelrc` (Recommended)](#via-babelrc-recommended) | ||
- [Via CLI](#via-cli) | ||
- [Via Node API](#via-node-api) | ||
- [Via webpack](#via-webpack) | ||
- [Options](#options) | ||
@@ -98,5 +97,5 @@ ## Enabled proposal plugins | ||
| option | description | defaults | | ||
| ------------------ | ----------------------------------- | --------- | | ||
| `legacyDecorators` | use legacy decorators semantic | `true` | | ||
| `pipelineOperator` | implementation of pipeline operator | `minimal` | | ||
| option | description | defaults | | ||
| ------------------ | ----------------------------------------- | ----------- | | ||
| `decoratorsLegacy` | whether to use legacy decorators semantic | `true` | | ||
| `pipelineOperator` | implementation of pipeline operator | `"minimal"` | |
14212
21
100