Skip to content

Commit 7d01157

Browse files
authoredJan 8, 2024
fix: shim process in edge runtime (#132)
1 parent 8505ac5 commit 7d01157

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed
 

‎.eslintignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
dist/
22
demo/
33
tests/
4+
edge-runtime

‎edge-runtime/shim/index.js

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
// a Webpack bundle. You should not import this file from anywhere in the
33
// application.
44
import { AsyncLocalStorage } from 'node:async_hooks'
5+
import process from 'node:process'
6+
7+
globalThis.process = process
58

69
globalThis.AsyncLocalStorage = AsyncLocalStorage
710

0 commit comments

Comments
 (0)
Please sign in to comment.