loro/crates/loro-wasm/scripts/nodejs_patch.js
2023-09-12 15:57:06 +08:00

5 lines
No EOL
131 B
JavaScript

const { webcrypto } = require("crypto");
Object.defineProperty(globalThis, 'crypto', {
value: webcrypto,
writable: true
});