Skip to content

Commit bfc4d2f

Browse files
authoredOct 11, 2024··
fix: improve deno compatibility by using node specifier in server bundle (#277)
1 parent 56f56a3 commit bfc4d2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/bundle-server.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export function registerServerBundle(
6868
...(isBundling
6969
? []
7070
: [
71-
`import { createRequire } from 'module'`,
71+
`import { createRequire } from 'node:module'`,
7272
`const require = createRequire(import.meta.url)`,
7373
]
7474
),

0 commit comments

Comments
 (0)
Please sign in to comment.