diff --git a/src/babel/traversal/scope/index.js b/src/babel/traversal/scope/index.js index ff7efbec24..818a1469e1 100644 --- a/src/babel/traversal/scope/index.js +++ b/src/babel/traversal/scope/index.js @@ -79,7 +79,6 @@ var collectorVisitor = { }, BlockScoped(node, parent, scope) { - if (this.isFunctionDeclaration()) return; if (scope.path === this) scope = scope.parent; scope.getBlockParent().registerDeclaration(this); },