Add t.cloneNode and deprecate t.clone and t.cloneDeep (#7149)
This commit is contained in:
@@ -73,13 +73,13 @@ export default function(api, options) {
|
||||
replacementPath.replaceWith(
|
||||
t.conditionalExpression(
|
||||
loose
|
||||
? t.binaryExpression("==", t.clone(check), t.nullLiteral())
|
||||
? t.binaryExpression("==", t.cloneNode(check), t.nullLiteral())
|
||||
: t.logicalExpression(
|
||||
"||",
|
||||
t.binaryExpression("===", t.clone(check), t.nullLiteral()),
|
||||
t.binaryExpression("===", t.cloneNode(check), t.nullLiteral()),
|
||||
t.binaryExpression(
|
||||
"===",
|
||||
t.clone(ref),
|
||||
t.cloneNode(ref),
|
||||
scope.buildUndefinedNode(),
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user