@babel/preset-typescript
Advanced tools
Comparing version 7.18.6 to 7.21.0
@@ -33,13 +33,9 @@ 'use strict'; | ||
const isTSX = v.validateBooleanOption(TopLevelOptions.isTSX, options.isTSX, false); | ||
if (isTSX) { | ||
v.invariant(allExtensions, "isTSX:true requires allExtensions:true"); | ||
} | ||
const disallowAmbiguousJSXLike = v.validateBooleanOption(TopLevelOptions.disallowAmbiguousJSXLike, options.disallowAmbiguousJSXLike, false); | ||
if (disallowAmbiguousJSXLike) { | ||
v.invariant(allExtensions, "disallowAmbiguousJSXLike:true requires allExtensions:true"); | ||
} | ||
const optimizeConstEnums = v.validateBooleanOption(TopLevelOptions.optimizeConstEnums, options.optimizeConstEnums, false); | ||
@@ -70,3 +66,2 @@ return { | ||
} = normalizeOptions(opts); | ||
const pluginOptions = (isTSX, disallowAmbiguousJSXLike) => ({ | ||
@@ -82,3 +77,2 @@ allowDeclareFields: opts.allowDeclareFields, | ||
}); | ||
return { | ||
@@ -85,0 +79,0 @@ overrides: allExtensions ? [{ |
{ | ||
"name": "@babel/preset-typescript", | ||
"version": "7.18.6", | ||
"version": "7.21.0", | ||
"description": "Babel preset for TypeScript.", | ||
@@ -20,5 +20,5 @@ "repository": { | ||
"dependencies": { | ||
"@babel/helper-plugin-utils": "^7.18.6", | ||
"@babel/helper-validator-option": "^7.18.6", | ||
"@babel/plugin-transform-typescript": "^7.18.6" | ||
"@babel/helper-plugin-utils": "^7.20.2", | ||
"@babel/helper-validator-option": "^7.21.0", | ||
"@babel/plugin-transform-typescript": "^7.21.0" | ||
}, | ||
@@ -29,3 +29,3 @@ "peerDependencies": { | ||
"devDependencies": { | ||
"@babel/core": "^7.18.6", | ||
"@babel/core": "^7.21.0", | ||
"@babel/helper-plugin-test-runner": "^7.18.6" | ||
@@ -32,0 +32,0 @@ }, |
Sorry, the diff of this file is not supported yet
14100