babel-preset-proposal-typescript
Advanced tools
Comparing version 1.2.5 to 1.2.6
@@ -5,2 +5,9 @@ # Changelog | ||
### [1.2.6](https://github.com/JounQin/babel-preset-proposal-typescript/compare/v1.2.5...v1.2.6) (2019-08-20) | ||
### Bug Fixes | ||
* incorrect type of overrides ([d86062a](https://github.com/JounQin/babel-preset-proposal-typescript/commit/d86062a)) | ||
### [1.2.5](https://github.com/JounQin/babel-preset-proposal-typescript/compare/v1.2.4...v1.2.5) (2019-08-20) | ||
@@ -7,0 +14,0 @@ |
26
esm.js
@@ -61,16 +61,18 @@ import syntaxDecorators from '@babel/plugin-syntax-decorators' | ||
// no need to override if it has been enabled | ||
overrides: !isTSX && [ | ||
{ | ||
test: /\.[jt]sx$/, | ||
plugins: [ | ||
[ | ||
syntaxTypeScript, | ||
{ | ||
isTSX: true, | ||
}, | ||
], | ||
overrides: isTSX | ||
? undefined | ||
: [ | ||
{ | ||
test: /\.[jt]sx$/, | ||
plugins: [ | ||
[ | ||
syntaxTypeScript, | ||
{ | ||
isTSX: true, | ||
}, | ||
], | ||
], | ||
}, | ||
], | ||
}, | ||
], | ||
} | ||
}) |
@@ -59,3 +59,3 @@ "use strict"; | ||
// no need to override if it has been enabled | ||
overrides: !isTSX && [{ | ||
overrides: isTSX ? undefined : [{ | ||
test: /\.[jt]sx$/, | ||
@@ -62,0 +62,0 @@ plugins: [[_pluginSyntaxTypescript["default"], { |
{ | ||
"name": "babel-preset-proposal-typescript", | ||
"version": "1.2.5", | ||
"version": "1.2.6", | ||
"description": "Yet another Babel preset for TypeScript, only transforms proposals which TypeScript does not support now.", | ||
@@ -5,0 +5,0 @@ "module": "esm.js", |
15287
123