diff --git a/src/visitor/delete-unused-var.js b/src/visitor/delete-unused-var.js index 3f7f63e..cca67b3 100644 --- a/src/visitor/delete-unused-var.js +++ b/src/visitor/delete-unused-var.js @@ -15,7 +15,7 @@ module.exports = { if (!binding || binding.referenced || !binding.constant) { return } - if (t.isCallExpression(node.init)) { + if (!t.isLiteral(node.init)) { return } const up1 = path.parentPath