loro/crates/loro-wasm/scripts/nodejs_patch.js

5 lines
131 B
JavaScript
Raw Normal View History

2023-07-28 18:03:51 +00:00
const { webcrypto } = require("crypto");
2023-09-12 07:57:06 +00:00
Object.defineProperty(globalThis, 'crypto', {
value: webcrypto,
writable: true
});