@babel/plugin-transform-typescript
Advanced tools
Comparing version 7.18.8 to 7.18.10
@@ -58,3 +58,5 @@ "use strict"; | ||
for (const declarator of declarations) { | ||
declarator.init = _core.types.assignmentExpression("=", getMemberExpression(name, declarator.id.name), declarator.init); | ||
if (declarator.init) { | ||
declarator.init = _core.types.assignmentExpression("=", getMemberExpression(name, declarator.id.name), declarator.init); | ||
} | ||
} | ||
@@ -138,2 +140,6 @@ | ||
{ | ||
if (subNode.declaration.declare) { | ||
continue; | ||
} | ||
const itemName = subNode.declaration.id.name; | ||
@@ -140,0 +146,0 @@ names.add(itemName); |
{ | ||
"name": "@babel/plugin-transform-typescript", | ||
"version": "7.18.8", | ||
"version": "7.18.10", | ||
"description": "Transform TypeScript into ES.next", | ||
@@ -20,4 +20,4 @@ "repository": { | ||
"dependencies": { | ||
"@babel/helper-create-class-features-plugin": "^7.18.6", | ||
"@babel/helper-plugin-utils": "^7.18.6", | ||
"@babel/helper-create-class-features-plugin": "^7.18.9", | ||
"@babel/helper-plugin-utils": "^7.18.9", | ||
"@babel/plugin-syntax-typescript": "^7.18.6" | ||
@@ -29,6 +29,6 @@ }, | ||
"devDependencies": { | ||
"@babel/core": "^7.18.6", | ||
"@babel/core": "^7.18.10", | ||
"@babel/helper-plugin-test-runner": "^7.18.6", | ||
"@babel/traverse": "^7.18.8", | ||
"@babel/types": "^7.18.8" | ||
"@babel/traverse": "^7.18.10", | ||
"@babel/types": "^7.18.10" | ||
}, | ||
@@ -35,0 +35,0 @@ "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-typescript", |
33263
863