Skip to content

Commit 29ddb60

Browse files
committed
fix: correctly polyfill globalThis.crypto
nitrojs/nitro#3402
1 parent 19ba8b0 commit 29ddb60

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎packages/nuxi/src/main.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import { logger } from './utils/logger'
1414

1515
// globalThis.crypto support for Node.js 18
1616
if(!globalThis.crypto){
17-
globalThis.crypto=nodeCryptoasunknownasCrypto
17+
globalThis.crypto=nodeCrypto.webcryptoasunknownasCrypto
1818
}
1919

2020
exportconstmain=defineCommand({

0 commit comments

Comments
 (0)