vue-hook-optimizer 0.0.60 → 0.0.62

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -592,17 +592,6 @@ function processSetup(ast, parentScope, parentPath, _spread, _lineOffset = 0) {
592
592
  if (path.type === "ExpressionStatement" && path.node.expression.type === "AssignmentExpression" && path.node.expression.right.type === "CallExpression" && path.node.expression.right.callee.type === "Identifier") {
593
593
  traverseHooks(path.node.expression.right, path.scope);
594
594
  }
595
- if (path.type === "ExpressionStatement" && path.node.expression.type === "AssignmentExpression" && path.node.expression.left.type === "Identifier" && graph.nodes.has(path.node.expression.left.name) && path.scope.block.type === "Program") {
596
- const _node = nodeCollection.getNode(path.node.expression.left.name);
597
- if (_node?.info?.used) {
598
- _node?.info?.used?.add("Assignment Expression");
599
- } else if (_node) {
600
- _node.info = {
601
- ..._node?.info,
602
- used: /* @__PURE__ */ new Set(["Assignment Expression"])
603
- };
604
- }
605
- }
606
595
  }
607
596
  }, parentScope, parentPath);
608
597
  return {