@babel/preset-typescript
Advanced tools
Comparing version 7.21.4-esm to 7.21.4-esm.1
@@ -1,17 +0,8 @@ | ||
'use strict'; | ||
import { declarePreset } from '@babel/helper-plugin-utils'; | ||
import transformTypeScript from '@babel/plugin-transform-typescript'; | ||
import '@babel/plugin-syntax-jsx'; | ||
import transformModulesCommonJS from '@babel/plugin-transform-modules-commonjs'; | ||
import { OptionValidator } from '@babel/helper-validator-option'; | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
var helperPluginUtils = require('@babel/helper-plugin-utils'); | ||
var transformTypeScript = require('@babel/plugin-transform-typescript'); | ||
require('@babel/plugin-syntax-jsx'); | ||
var transformModulesCommonJS = require('@babel/plugin-transform-modules-commonjs'); | ||
var helperValidatorOption = require('@babel/helper-validator-option'); | ||
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } | ||
var transformTypeScript__default = /*#__PURE__*/_interopDefaultLegacy(transformTypeScript); | ||
var transformModulesCommonJS__default = /*#__PURE__*/_interopDefaultLegacy(transformModulesCommonJS); | ||
const v = new helperValidatorOption.OptionValidator("@babel/preset-typescript"); | ||
const v = new OptionValidator("@babel/preset-typescript"); | ||
function normalizeOptions(options = {}) { | ||
@@ -66,3 +57,3 @@ let { | ||
var index = helperPluginUtils.declarePreset((api, opts) => { | ||
var index = declarePreset((api, opts) => { | ||
api.assertVersion(7); | ||
@@ -90,3 +81,3 @@ const { | ||
{ | ||
return [[transformTypeScript__default["default"], Object.assign({ | ||
return [[transformTypeScript, Object.assign({ | ||
isTSX | ||
@@ -109,5 +100,5 @@ }, pluginOptions(disallowAmbiguousJSXLike))]]; | ||
sourceType: "unambiguous", | ||
plugins: [[transformModulesCommonJS__default["default"], { | ||
plugins: [[transformModulesCommonJS, { | ||
allowTopLevelThis: true | ||
}], [transformTypeScript__default["default"], pluginOptions(true)]] | ||
}], [transformTypeScript, pluginOptions(true)]] | ||
}, { | ||
@@ -120,3 +111,3 @@ test: /\.tsx$/, | ||
exports["default"] = index; | ||
export { index as default }; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@babel/preset-typescript", | ||
"version": "7.21.4-esm", | ||
"version": "7.21.4-esm.1", | ||
"description": "Babel preset for TypeScript.", | ||
@@ -20,14 +20,14 @@ "repository": { | ||
"dependencies": { | ||
"@babel/helper-plugin-utils": "^7.21.4-esm", | ||
"@babel/helper-validator-option": "^7.21.4-esm", | ||
"@babel/plugin-syntax-jsx": "^7.21.4-esm", | ||
"@babel/plugin-transform-modules-commonjs": "^7.21.4-esm", | ||
"@babel/plugin-transform-typescript": "^7.21.4-esm" | ||
"@babel/helper-plugin-utils": "^7.21.4-esm.1", | ||
"@babel/helper-validator-option": "^7.21.4-esm.1", | ||
"@babel/plugin-syntax-jsx": "^7.21.4-esm.1", | ||
"@babel/plugin-transform-modules-commonjs": "^7.21.4-esm.1", | ||
"@babel/plugin-transform-typescript": "^7.21.4-esm.1" | ||
}, | ||
"peerDependencies": { | ||
"@babel/core": "^7.0.0-0 || 7.21.4-esm" | ||
"@babel/core": "^7.0.0-0 || 7.21.4-esm.1" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.21.4-esm", | ||
"@babel/helper-plugin-test-runner": "^7.21.4-esm" | ||
"@babel/core": "^7.21.4-esm.1", | ||
"@babel/helper-plugin-test-runner": "^7.21.4-esm.1" | ||
}, | ||
@@ -40,3 +40,3 @@ "homepage": "https://babel.dev/docs/en/next/babel-preset-typescript", | ||
"author": "The Babel Team (https://babel.dev/team)", | ||
"type": "commonjs" | ||
"type": "module" | ||
} |
Sorry, the diff of this file is not supported yet
Yes
17057
106