Skip to content

Commit

Permalink
fix(deno-server): always inject process from node:process (#2372)
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 authored Apr 17, 2024
1 parent 69a7887 commit babe16e
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/presets/deno-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit babe16e

Please sign in to comment.