mirror of https://github.com/vuejs/core.git
feat: support browser for walkIdentifiers
This commit is contained in:
parent
7201bf338d
commit
7874664d29
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue