diff options
author | Matthew Miller <matthew@millerti.me> | 2023-08-23 08:55:56 -0700 |
---|---|---|
committer | Matthew Miller <matthew@millerti.me> | 2023-08-23 08:55:56 -0700 |
commit | 0ef90b356d7544c786571b6a158d9d5cf95077a4 (patch) | |
tree | 1108940281a7ce0386739e73530b654896623837 /packages/server/src | |
parent | 70fb3329928c399f7952818ea6ba8c1e716aad5a (diff) |
Fix dynamic import attempt
Diffstat (limited to 'packages/server/src')
-rw-r--r-- | packages/server/src/helpers/iso/isoCrypto/getWebCrypto.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/server/src/helpers/iso/isoCrypto/getWebCrypto.ts b/packages/server/src/helpers/iso/isoCrypto/getWebCrypto.ts index 019847d..a5e580e 100644 --- a/packages/server/src/helpers/iso/isoCrypto/getWebCrypto.ts +++ b/packages/server/src/helpers/iso/isoCrypto/getWebCrypto.ts @@ -17,8 +17,8 @@ export async function getWebCrypto(): Promise<Crypto> { */ // @ts-ignore: We'll handle any errors... // dnt-shim-ignore - const _crypto = await require('node:crypto'); - webCrypto = _crypto.webcrypto as unknown as Crypto; + const _crypto = await import('node:crypto'); + webCrypto = _crypto.webcrypto as Crypto; } catch (_err) { /** * Naively attempt to access Crypto as a global object, which popular alternative run-times |