babel-plugin-minify-infinity
Advanced tools
Comparing version 0.5.0-alpha.9939bca9 to 0.5.0-alpha.9e447f6d
@@ -31,3 +31,7 @@ "use strict"; | ||
if (path.isLVal() && !path.parentPath.isExpressionStatement()) { | ||
const bindingIds = path.parentPath.getBindingIdentifierPaths(); | ||
if (bindingIds["Infinity"] === path && // ObjectProperty is common for ObjectExpression and ObjectPattern and only | ||
// one of them is a Binding, the other is simply a reference | ||
!path.parentPath.parentPath.isObjectExpression()) { | ||
return; | ||
@@ -34,0 +38,0 @@ } |
{ | ||
"name": "babel-plugin-minify-infinity", | ||
"version": "0.5.0-alpha.9939bca9", | ||
"version": "0.5.0-alpha.9e447f6d", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
1950
34