From f4410843d106c68e78e321929b5f5180eacc0c64 Mon Sep 17 00:00:00 2001 From: Kaleb Ercanbrack <44715857+Twitch0125@users.noreply.github.com> Date: Thu, 10 Oct 2024 20:53:25 -0600 Subject: [PATCH] fix: improve deno compatibility by using node specifier in server bundle --- src/bundle-server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bundle-server.ts b/src/bundle-server.ts index 356ab51..d523693 100644 --- a/src/bundle-server.ts +++ b/src/bundle-server.ts @@ -68,7 +68,7 @@ export function registerServerBundle( ...(isBundling ? [] : [ - `import { createRequire } from 'module'`, + `import { createRequire } from 'node:module'`, `const require = createRequire(import.meta.url)`, ] ),