Add t.cloneNode and deprecate t.clone and t.cloneDeep (#7149)
This commit is contained in:
@@ -69,7 +69,7 @@ function buildModule(whitelist) {
|
||||
t.exportNamedDeclaration(
|
||||
null,
|
||||
Object.keys(refs).map(name => {
|
||||
return t.exportSpecifier(t.clone(refs[name]), t.identifier(name));
|
||||
return t.exportSpecifier(t.cloneNode(refs[name]), t.identifier(name));
|
||||
}),
|
||||
),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user