vue-hook-optimizer 0.0.60 → 0.0.62

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.js CHANGED
@@ -635,17 +635,6 @@ function processSetup(ast, parentScope, parentPath, _spread, _lineOffset = 0) {
635
635
  if (path.type === "ExpressionStatement" && path.node.expression.type === "AssignmentExpression" && path.node.expression.right.type === "CallExpression" && path.node.expression.right.callee.type === "Identifier") {
636
636
  traverseHooks(path.node.expression.right, path.scope);
637
637
  }
638
- 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") {
639
- const _node = nodeCollection.getNode(path.node.expression.left.name);
640
- if (_node?.info?.used) {
641
- _node?.info?.used?.add("Assignment Expression");
642
- } else if (_node) {
643
- _node.info = {
644
- ..._node?.info,
645
- used: /* @__PURE__ */ new Set(["Assignment Expression"])
646
- };
647
- }
648
- }
649
638
  }
650
639
  }, parentScope, parentPath);
651
640
  return {