From babe16e889cff4a5c8d81a3181d05dae37bf6909 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Wed, 17 Apr 2024 12:47:15 +0200 Subject: [PATCH] fix(deno-server): always inject `process` from `node:process` (#2372) --- src/presets/deno-server.ts | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/presets/deno-server.ts b/src/presets/deno-server.ts index 5accff40bf..ee72ec3625 100644 --- a/src/presets/deno-server.ts +++ b/src/presets/deno-server.ts @@ -16,13 +16,14 @@ export const denoServer = defineNitroPreset({ unenv: { inject: { global: ["unenv/runtime/polyfill/global-this", "default"], - Buffer: ["buffer", "Buffer"], - setTimeout: ["timers", "setTimeout"], - clearTimeout: ["timers", "clearTimeout"], - setInterval: ["timers", "setInterval"], - clearInterval: ["timers", "clearInterval"], - setImmediate: ["timers", "setImmediate"], - clearImmediate: ["timers", "clearImmediate"], + Buffer: ["node:buffer", "Buffer"], + setTimeout: ["node:timers", "setTimeout"], + clearTimeout: ["node:timers", "clearTimeout"], + setInterval: ["node:timers", "setInterval"], + clearInterval: ["node:timers", "clearInterval"], + setImmediate: ["node:timers", "setImmediate"], + clearImmediate: ["node:timers", "clearImmediate"], + process: ["node:process", "default"], }, }, rollupConfig: {