summaryrefslogtreecommitdiffhomepage
path: root/packages/server/src
diff options
context:
space:
mode:
authorBalázs Orbán <info@balazsorban.com>2024-02-08 13:17:50 +0000
committerGitHub <noreply@github.com>2024-02-08 13:17:50 +0000
commitf20dd72dab40bddc1e51ca6e2a717fda55c2426a (patch)
treecfeac0a34dd46d4a2363e78efa9cf98f7bd6474f /packages/server/src
parentba7048cfd791cd9400871d008d21d1354543e2b3 (diff)
fix: ignore `import("node: crypto")` by webpack
Fixes https://github.com/MasterKale/SimpleWebAuthn/issues/517
Diffstat (limited to 'packages/server/src')
-rw-r--r--packages/server/src/helpers/iso/isoCrypto/getWebCrypto.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/server/src/helpers/iso/isoCrypto/getWebCrypto.ts b/packages/server/src/helpers/iso/isoCrypto/getWebCrypto.ts
index 11871a6..7ef57c6 100644
--- a/packages/server/src/helpers/iso/isoCrypto/getWebCrypto.ts
+++ b/packages/server/src/helpers/iso/isoCrypto/getWebCrypto.ts
@@ -49,7 +49,7 @@ export const _getWebCryptoInternals = {
stubThisImportNodeCrypto: async () => {
try {
// dnt-shim-ignore
- const _nodeCrypto = await import('node:crypto');
+ const _nodeCrypto = await import(/* webpackIgnore: true */ 'node:crypto');
return _nodeCrypto;
} catch (_err) {
/**