feat: support browser for walkIdentifiers

This commit is contained in:
zhiyuanzmj 2025-05-26 09:06:29 +08:00
parent 7201bf338d
commit 7874664d29
1 changed files with 0 additions and 8 deletions

View File

@ -30,10 +30,6 @@ export function walkIdentifiers(
parentStack: Node[] = [],
knownIds: Record<string, number> = Object.create(null),
): void {
if (__BROWSER__) {
return
}
const rootExp =
root.type === 'Program'
? root.body[0].type === 'ExpressionStatement' && root.body[0].expression
@ -110,10 +106,6 @@ export function isReferencedIdentifier(
parent: Node | null,
parentStack: Node[],
): boolean {
if (__BROWSER__) {
return false
}
if (!parent) {
return true
}