Add t.cloneNode and deprecate t.clone and t.cloneDeep (#7149)
This commit is contained in:
@@ -221,7 +221,7 @@ export default function(api, options) {
|
||||
if (t.isRestElement(prop)) {
|
||||
this.pushObjectRest(pattern, objRef, prop, i);
|
||||
} else {
|
||||
this.pushObjectProperty(prop, t.clone(objRef));
|
||||
this.pushObjectProperty(prop, t.cloneNode(objRef));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user