Initial Commit
This commit is contained in:
6
packages/foundation/flow/crdt/tests/setup/polyfills.ts
Normal file
6
packages/foundation/flow/crdt/tests/setup/polyfills.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import { webcrypto } from "node:crypto";
|
||||
|
||||
if (typeof globalThis.crypto === "undefined") {
|
||||
// @ts-expect-error polyfill
|
||||
globalThis.crypto = webcrypto;
|
||||
}
|
||||
Reference in New Issue
Block a user