@babel/plugin-transform-typeof-symbol
Advanced tools
Comparing version
@@ -42,7 +42,9 @@ "use strict"; | ||
const helper = this.addHelper("typeof"); | ||
isUnderHelper = path.findParent(path => { | ||
return path.isVariableDeclarator() && path.node.id === helper || path.isFunctionDeclaration() && path.node.id && path.node.id.name === helper.name; | ||
}); | ||
if (isUnderHelper) { | ||
return; | ||
{ | ||
isUnderHelper = path.findParent(path => { | ||
return path.isVariableDeclarator() && path.node.id === helper || path.isFunctionDeclaration() && path.node.id && path.node.id.name === helper.name; | ||
}); | ||
if (isUnderHelper) { | ||
return; | ||
} | ||
} | ||
@@ -49,0 +51,0 @@ const call = _core.types.callExpression(helper, [node.argument]); |
{ | ||
"name": "@babel/plugin-transform-typeof-symbol", | ||
"version": "7.26.7", | ||
"version": "7.27.0", | ||
"description": "This transformer wraps all typeof expressions with a method that replicates native behaviour. (ie. returning “symbol” for symbols)", | ||
@@ -25,7 +25,7 @@ "repository": { | ||
"devDependencies": { | ||
"@babel/core": "^7.26.7", | ||
"@babel/core": "^7.26.10", | ||
"@babel/helper-plugin-test-runner": "^7.25.9", | ||
"@babel/runtime": "^7.26.7", | ||
"@babel/runtime": "^7.27.0", | ||
"@babel/runtime-corejs2": "^7.24.0", | ||
"@babel/runtime-corejs3": "^7.26.7" | ||
"@babel/runtime-corejs3": "^7.27.0" | ||
}, | ||
@@ -32,0 +32,0 @@ "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-typeof-symbol", |
Sorry, the diff of this file is not supported yet
10520
0.82%61
3.39%