babel-dead-code-elimination
Advanced tools
Comparing version 1.0.7 to 1.0.8
@@ -20,2 +20,5 @@ // src/babel-esm.ts | ||
} | ||
if (binding.path.isVariableDeclarator() && (binding.path.parentPath?.parentPath?.isForOfStatement() || binding.path.parentPath?.parentPath?.isForInStatement())) { | ||
return true; | ||
} | ||
return binding.constantViolations.length > 0; | ||
@@ -22,0 +25,0 @@ } |
{ | ||
"name": "babel-dead-code-elimination", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"description": "Composable primitives for dead code elimination in Babel", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
21626
512