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.js +0 -11
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +0 -11
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
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 {
|