diff --git a/packages/compiler-core/src/babelUtils.ts b/packages/compiler-core/src/babelUtils.ts index 6ede6bd03..342050dc4 100644 --- a/packages/compiler-core/src/babelUtils.ts +++ b/packages/compiler-core/src/babelUtils.ts @@ -30,10 +30,6 @@ export function walkIdentifiers( parentStack: Node[] = [], knownIds: Record = 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 }