babel-plugin-transform-es2015-block-scoped-functions
Advanced tools
Comparing version
@@ -23,5 +23,5 @@ "use strict"; | ||
var _path = _ref2; | ||
var func = _path.node; | ||
if (!_path.isFunctionDeclaration()) continue; | ||
var _path2 = _ref2; | ||
var func = _path2.node; | ||
if (!_path2.isFunctionDeclaration()) continue; | ||
var declar = t.variableDeclaration("let", [t.variableDeclarator(func.id, t.toExpression(func))]); | ||
@@ -31,3 +31,3 @@ declar._blockHoist = 2; | ||
_path.replaceWith(declar); | ||
_path2.replaceWith(declar); | ||
} | ||
@@ -34,0 +34,0 @@ } |
{ | ||
"name": "babel-plugin-transform-es2015-block-scoped-functions", | ||
"version": "7.0.0-alpha.19", | ||
"version": "7.0.0-alpha.20", | ||
"description": "Babel plugin to ensure function declarations at the block level are block scoped", | ||
@@ -12,4 +12,4 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-es2015-block-scoped-functions", | ||
"devDependencies": { | ||
"babel-helper-plugin-test-runner": "7.0.0-alpha.19" | ||
"babel-helper-plugin-test-runner": "7.0.0-alpha.20" | ||
} | ||
} |
2602
0.15%