Skip to content

Commit be8e372

Browse files
committed
feat(compiler-core): support browser environment for walkIdentifiers
1 parent 4b1931c commit be8e372

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

packages/compiler-core/src/babelUtils.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,6 @@ export function walkIdentifiers(
2929
parentStack: Node[] = [],
3030
knownIds: Record<string, number> = Object.create(null),
3131
): void {
32-
if (__BROWSER__) {
33-
return
34-
}
35-
3632
const rootExp =
3733
root.type === 'Program'
3834
? root.body[0].type === 'ExpressionStatement' && root.body[0].expression
@@ -109,10 +105,6 @@ export function isReferencedIdentifier(
109105
parent: Node | null,
110106
parentStack: Node[],
111107
): boolean {
112-
if (__BROWSER__) {
113-
return false
114-
}
115-
116108
if (!parent) {
117109
return true
118110
}

0 commit comments

Comments
 (0)