File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change 11// NOTE: This is a fragment of a JavaScript program that will be inlined with
22// a Webpack bundle. You should not import this file from anywhere in the
33// application.
4- import { AsyncLocalStorage } from 'node:async_hooks'
5-
64import { createRequire } from 'node:module' // used in dynamically generated part
7- import process from 'node:process'
85
96import { registerCJSModules } from '../edge-runtime/lib/cjs.ts' // used in dynamically generated part
107
11- globalThis . process = process
8+ if ( typeof process === 'undefined' ) {
9+ globalThis . process = ( await import ( 'node:process' ) ) . default
10+ }
11+
12+ if ( typeof AsyncLocalStorage === 'undefined' ) {
13+ globalThis . AsyncLocalStorage = ( await import ( 'node:async_hooks' ) ) . AsyncLocalStorage
14+ }
1215
13- globalThis . AsyncLocalStorage = AsyncLocalStorage
16+ if ( typeof Buffer === 'undefined' ) {
17+ globalThis . Buffer = ( await import ( 'node:buffer' ) ) . Buffer
18+ }
1419
1520// needed for path.relative and path.resolve to work
1621Deno . cwd = ( ) => ''
You can’t perform that action at this time.
0 commit comments