From 332e7486fb65d24c81d4667091904d36d2adacb6 Mon Sep 17 00:00:00 2001 From: Tee Ming Date: Tue, 24 Feb 2026 01:13:57 +0800 Subject: [PATCH] evaluate node instead of always false --- src/utils/ast-helpers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/ast-helpers.ts b/src/utils/ast-helpers.ts index 895e8224..f28417a2 100644 --- a/src/utils/ast-helpers.ts +++ b/src/utils/ast-helpers.ts @@ -22,7 +22,7 @@ export function isIdentifierRead(node: Node, parent: Node) { return parent.id !== node; // disregard the `bar` in `export { foo as bar }` case 'ExportSpecifier': - return false; + return node.name === parent.exported.name; // disregard the `bar` in `function (bar) {}` case 'FunctionExpression': case 'FunctionDeclaration':