babel-plugin-minify-constant-folding
Advanced tools
Comparing version 0.5.0-alpha.b4285271 to 0.5.0-alpha.b5637c57
@@ -119,3 +119,4 @@ "use strict"; | ||
}) { | ||
const node = path.node; | ||
const node = path.node, | ||
parent = path.parent; | ||
@@ -132,2 +133,7 @@ if (node[seen]) { | ||
return; | ||
} // Avoid replacing the values for identifiers in exports | ||
if (t.isExportSpecifier(parent)) { | ||
return; | ||
} // -0 maybe compared via dividing and then checking against -Infinity | ||
@@ -134,0 +140,0 @@ // Also -X will always be -X. |
{ | ||
"name": "babel-plugin-minify-constant-folding", | ||
"version": "0.5.0-alpha.b4285271", | ||
"version": "0.5.0-alpha.b5637c57", | ||
"description": "", | ||
@@ -15,4 +15,4 @@ "keywords": [ | ||
"dependencies": { | ||
"babel-helper-evaluate-path": "^0.5.0-alpha.b4285271" | ||
"babel-helper-evaluate-path": "^0.5.0-alpha.b5637c57" | ||
} | ||
} |
@@ -59,3 +59,3 @@ # babel-plugin-minify-constant-folding | ||
```sh | ||
npm install babel-plugin-minify-constant-folding | ||
npm install babel-plugin-minify-constant-folding --save-dev | ||
``` | ||
@@ -62,0 +62,0 @@ |
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
11615
312