babel-plugin-minify-mangle-names
Advanced tools
Comparing version 0.3.0-alpha.9a74dfd1 to 0.3.0-alpha.a351eeed
@@ -12,3 +12,3 @@ "use strict"; | ||
} | ||
var fnScope = path.scope.getFunctionParent(); | ||
var fnScope = path.scope.getFunctionParent() || path.scope.getProgramParent(); | ||
var bindingIds = path.getOuterBindingIdentifierPaths(); | ||
@@ -15,0 +15,0 @@ |
@@ -143,3 +143,4 @@ "use strict"; | ||
*/ | ||
if (!isEvalScopesMarked(mangler.program.scope)) { | ||
if (!isEvalScopesMarked(mangler.program)) { | ||
markEvalScopes(mangler.program); | ||
@@ -146,0 +147,0 @@ } |
{ | ||
"name": "babel-plugin-minify-mangle-names", | ||
"version": "0.3.0-alpha.9a74dfd1", | ||
"version": "0.3.0-alpha.a351eeed", | ||
"description": "", | ||
@@ -15,4 +15,4 @@ "keywords": [ | ||
"dependencies": { | ||
"babel-helper-mark-eval-scopes": "^0.3.0-alpha.9a74dfd1" | ||
"babel-helper-mark-eval-scopes": "^0.3.0-alpha.a351eeed" | ||
} | ||
} |
40584