vue-hook-optimizer 0.0.60 → 0.0.61

Sign up to get free protection for your applications and to get access to all the features.
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 {