Skip to content

Commit fc53ae6

Browse files
authored
try sk-style
1 parent 8f24295 commit fc53ae6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/helpers/setUpEdgeFunction.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,12 @@ const setUpEdgeFunction = async ({ angularJson, constants, failBuild }) => {
9191
import process from "node:process"
9292
import crypto from "node:crypto"
9393
94-
globalThis.crypto = crypto
94+
Object.defineProperty(globalThis, 'crypto', {
95+
configurable: true,
96+
enumerable: true,
97+
value: crypto,
98+
writable: true
99+
})
95100
globalThis.process = process
96101
globalThis.DenoEvent = globalThis.Event // storing this for fixup-event.mjs
97102
`

0 commit comments

Comments
 (0)