mirror of
https://github.com/morluto/rea
synced 2026-10-26 06:16:17 -04:00
refactor: remove superseded Hopper and Babel compatibility paths
This commit is contained in:
@@ -725,11 +725,7 @@ export const calleeName = (node: t.Node): string => {
|
||||
if (!t.isNode(node.object)) break;
|
||||
node = unwrapJavaScriptExpression(node.object).node;
|
||||
}
|
||||
const base = t.isIdentifier(node)
|
||||
? node.name
|
||||
: t.isImport(node)
|
||||
? "import"
|
||||
: "";
|
||||
const base = t.isIdentifier(node) ? node.name : "";
|
||||
segments.push(base);
|
||||
segments.reverse();
|
||||
const first = segments.findIndex((segment) => segment !== "");
|
||||
|
||||
Reference in New Issue
Block a user