This commit is contained in:
@@ -59,6 +59,9 @@ export default function () {
|
||||
|
||||
if (path.parentPath.isCallExpression({ callee: path.node })) {
|
||||
path.replaceWith(t.sequenceExpression([t.numericLiteral(0), remap]));
|
||||
} else if (path.isJSXIdentifier() && t.isMemberExpression(remap)) {
|
||||
const { object, property } = remap;
|
||||
path.replaceWith(t.JSXMemberExpression(t.JSXIdentifier(object.name), t.JSXIdentifier(property.name)));
|
||||
} else {
|
||||
path.replaceWith(remap);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user