babel-plugin-minify-dead-code-elimination
Advanced tools
Comparing version 0.5.0-alpha.34c3efe9 to 0.5.0-alpha.5f601890
@@ -734,3 +734,9 @@ "use strict"; | ||
} else { | ||
path.remove(); | ||
const init = path.get("init"); | ||
if (init.node && !init.isPure()) { | ||
path.replaceWith(init); | ||
} else { | ||
path.remove(); | ||
} | ||
} | ||
@@ -737,0 +743,0 @@ } |
{ | ||
"name": "babel-plugin-minify-dead-code-elimination", | ||
"version": "0.5.0-alpha.34c3efe9", | ||
"version": "0.5.0-alpha.5f601890", | ||
"description": "", | ||
@@ -15,7 +15,7 @@ "keywords": [ | ||
"dependencies": { | ||
"babel-helper-evaluate-path": "^0.5.0-alpha.34c3efe9", | ||
"babel-helper-mark-eval-scopes": "^0.5.0-alpha.34c3efe9", | ||
"babel-helper-remove-or-void": "^0.5.0-alpha.34c3efe9", | ||
"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", | ||
"lodash.some": "^4.6.0" | ||
} | ||
} |
@@ -34,3 +34,3 @@ # babel-plugin-minify-dead-code-elimination | ||
```sh | ||
npm install babel-plugin-minify-dead-code-elimination | ||
npm install babel-plugin-minify-dead-code-elimination --save-dev | ||
``` | ||
@@ -37,0 +37,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
45541
1169