Introduce objectWithoutPropertiesLoose helper (#8261)
This commit is contained in:
committed by
Henry Zhu
parent
cea562c009
commit
c0c13ae30f
@@ -188,10 +188,10 @@ export default declare((api, options) => {
|
||||
} else {
|
||||
keys = t.arrayExpression(keys);
|
||||
|
||||
value = t.callExpression(this.addHelper("objectWithoutProperties"), [
|
||||
t.cloneNode(objRef),
|
||||
keys,
|
||||
]);
|
||||
value = t.callExpression(
|
||||
this.addHelper(`objectWithoutProperties${loose ? "Loose" : ""}`),
|
||||
[t.cloneNode(objRef), keys],
|
||||
);
|
||||
}
|
||||
|
||||
this.nodes.push(this.buildVariableAssignment(spreadProp.argument, value));
|
||||
|
||||
Reference in New Issue
Block a user