Skip to content

Commit 8f24295

Browse files
authored
fix: crypto missing in polyfill
Reported by customer: https://answers.netlify.com/t/122805
1 parent dd00a46 commit 8f24295

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/helpers/setUpEdgeFunction.js

+2
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,9 @@ const setUpEdgeFunction = async ({ angularJson, constants, failBuild }) => {
8989
// we ensure this is initialised before any other module
9090
const polyfills = `
9191
import process from "node:process"
92+
import crypto from "node:crypto"
9293
94+
globalThis.crypto = crypto
9395
globalThis.process = process
9496
globalThis.DenoEvent = globalThis.Event // storing this for fixup-event.mjs
9597
`

0 commit comments

Comments
 (0)