babel-plugin-minify-dead-code-elimination
Advanced tools
Comparing version 0.5.0-alpha.5f601890 to 0.5.0-alpha.6889f45d
@@ -13,2 +13,7 @@ "use strict"; | ||
function evaluateTruthy(path) { | ||
const res = evaluate(path); | ||
if (res.confident) return !!res.value; | ||
} | ||
function prevSiblings(path) { | ||
@@ -593,3 +598,3 @@ const parentPath = path.parentPath; | ||
const node = path.node; | ||
const evaluateTest = path.get("test").evaluateTruthy(); | ||
const evaluateTest = evaluateTruthy(path.get("test")); | ||
@@ -596,0 +601,0 @@ if (evaluateTest === true) { |
{ | ||
"name": "babel-plugin-minify-dead-code-elimination", | ||
"version": "0.5.0-alpha.5f601890", | ||
"version": "0.5.0-alpha.6889f45d", | ||
"description": "", | ||
@@ -15,7 +15,7 @@ "keywords": [ | ||
"dependencies": { | ||
"babel-helper-evaluate-path": "^0.5.0-alpha.5f601890", | ||
"babel-helper-mark-eval-scopes": "^0.5.0-alpha.5f601890", | ||
"babel-helper-remove-or-void": "^0.5.0-alpha.5f601890", | ||
"babel-helper-evaluate-path": "^0.5.0-alpha.6889f45d", | ||
"babel-helper-mark-eval-scopes": "^0.5.0-alpha.6889f45d", | ||
"babel-helper-remove-or-void": "^0.5.0-alpha.6889f45d", | ||
"lodash.some": "^4.6.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
45646
1173