Skip to content

Commit

Permalink
fix: improve deno compatibility by using node specifier in server bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
Twitch0125 authored Oct 11, 2024
1 parent 56f56a3 commit f441084
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bundle-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export function registerServerBundle(
...(isBundling
? []
: [
`import { createRequire } from 'module'`,
`import { createRequire } from 'node:module'`,
`const require = createRequire(import.meta.url)`,
]
),
Expand Down

0 comments on commit f441084

Please sign in to comment.