We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8669b58 commit db4f02dCopy full SHA for db4f02d
edge-runtime/shim/index.js renamed to edge-runtime/shim/edge.js
edge-runtime/shim/node.js
@@ -0,0 +1,16 @@
1
+// NOTE: This is a fragment of a JavaScript program that will be inlined with
2
+// a Webpack bundle. You should not import this file from anywhere in the
3
+// application.
4
+import { AsyncLocalStorage } from 'node:async_hooks'
5
+
6
+import { createRequire } from 'node:module' // used in dynamically generated part
7
+import process from 'node:process'
8
9
+import { registerCJSModules } from '../edge-runtime/lib/cjs.ts' // used in dynamically generated part
10
11
+globalThis.process = process
12
13
+globalThis.AsyncLocalStorage = AsyncLocalStorage
14
15
+// needed for path.relative and path.resolve to work
16
+Deno.cwd = () => ''
0 commit comments