refactor: remove superseded Hopper and Babel compatibility paths

This commit is contained in:
morluto
2026-10-24 00:54:44 +08:00
parent 33f90f95b6
commit d78892eb4b
5 changed files with 6 additions and 112 deletions
@@ -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 !== "");