UNPKG

@exodus/test-bundler

Version:

Test bundler for @exodus/test for barebone and browser engines

6 lines (5 loc) 286 B
const cb = require('crypto-browserify') const webcrypto = globalThis.crypto const randomUUID = () => webcrypto.randomUUID() const getRandomValues = (array) => webcrypto.getRandomValues(array) module.exports = { ...cb, webcrypto, subtle: webcrypto?.subtle, randomUUID, getRandomValues }