v3 new release (#84)

swap to graphql
This commit is contained in:
github-actions[bot]
2022-07-11 13:48:02 -04:00
committed by GitHub
parent 20d2b4f98d
commit e4f3964f67
1492 changed files with 63799 additions and 63001 deletions

View File

@@ -19,11 +19,12 @@ const {
unaryExpression
} = _t;
function simplifyAccess(path, bindingNames) {
function simplifyAccess(path, bindingNames, includeUpdateExpression = true) {
path.traverse(simpleAssignmentVisitor, {
scope: path.scope,
bindingNames,
seen: new WeakSet()
seen: new WeakSet(),
includeUpdateExpression
});
}
@@ -32,8 +33,14 @@ const simpleAssignmentVisitor = {
exit(path) {
const {
scope,
bindingNames
bindingNames,
includeUpdateExpression
} = this;
if (!includeUpdateExpression) {
return;
}
const arg = path.get("argument");
if (!arg.isIdentifier()) return;
const localName = arg.node.name;