Add t.cloneNode and deprecate t.clone and t.cloneDeep (#7149)
This commit is contained in:
@@ -107,7 +107,7 @@ export default function(api, options) {
|
||||
callee.object = t.assignmentExpression("=", temp, callee.object);
|
||||
contextLiteral = temp;
|
||||
} else {
|
||||
contextLiteral = t.cloneDeep(callee.object);
|
||||
contextLiteral = t.cloneNode(callee.object);
|
||||
}
|
||||
t.appendToMemberExpression(callee, t.identifier("apply"));
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user