Skip to content

Commit

Permalink
fix(client-sdk): hack for process missing for wechat miniprogram
Browse files Browse the repository at this point in the history
  • Loading branch information
maslow committed Sep 22, 2022
1 parent c5a3503 commit 36002b1
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion packages/client-sdk/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
import { Cloud, Db, } from './cloud'
/**
* hack `process` missing for wechat miniprogram
*/
declare const wx: any
if (wx) {
(globalThis as any).process = {}
console.info('hacked for `process` missing for wechat miniprogram')
}

import { Cloud, Db, } from './cloud'
import { CloudOptions } from './types'

export * from './request'
Expand Down

0 comments on commit 36002b1

Please sign in to comment.