@babel/plugin-transform-block-scoping
Advanced tools
Comparing version 8.0.0-alpha.2 to 8.0.0-alpha.3
@@ -62,3 +62,5 @@ import { declare } from '@babel/helper-plugin-utils'; | ||
for (let currPath = path; currPath; currPath = currPath.parentPath) { | ||
if (currPath.isFunction() || currPath.isClass()) inClosure = true; | ||
if (currPath.isFunction() || currPath.isClass() || currPath.isMethod()) { | ||
inClosure = true; | ||
} | ||
if (currPath === bodyPath) { | ||
@@ -65,0 +67,0 @@ return { |
{ | ||
"name": "@babel/plugin-transform-block-scoping", | ||
"version": "8.0.0-alpha.2", | ||
"version": "8.0.0-alpha.3", | ||
"description": "Compile ES2015 block scoping (const and let) to ES5", | ||
@@ -17,3 +17,3 @@ "repository": { | ||
"dependencies": { | ||
"@babel/helper-plugin-utils": "^8.0.0-alpha.2" | ||
"@babel/helper-plugin-utils": "^8.0.0-alpha.3" | ||
}, | ||
@@ -24,8 +24,8 @@ "keywords": [ | ||
"peerDependencies": { | ||
"@babel/core": "^8.0.0-alpha.2" | ||
"@babel/core": "^8.0.0-alpha.3" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^8.0.0-alpha.2", | ||
"@babel/helper-plugin-test-runner": "^8.0.0-alpha.2", | ||
"@babel/traverse": "^8.0.0-alpha.2" | ||
"@babel/core": "^8.0.0-alpha.3", | ||
"@babel/helper-plugin-test-runner": "^8.0.0-alpha.3", | ||
"@babel/traverse": "^8.0.0-alpha.3" | ||
}, | ||
@@ -32,0 +32,0 @@ "engines": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
87466
5
667