diff --git a/packages/client-sdk/src/index.ts b/packages/client-sdk/src/index.ts index 1a137ce841..457d27aad1 100644 --- a/packages/client-sdk/src/index.ts +++ b/packages/client-sdk/src/index.ts @@ -1,8 +1,7 @@ /** * hack `process` missing for wechat miniprogram */ -declare const wx: any -if (wx && !process) { +if (globalThis.wx && !globalThis.process) { (globalThis as any).process = { env: {} }