Skip to content

Commit

Permalink
fix(nodelss): use valid esm inject paths (#369)
Browse files Browse the repository at this point in the history
  • Loading branch information
niksy authored Dec 10, 2024
1 parent a5d5190 commit d9d4d03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/presets/nodeless.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ const nodeless: Preset & { alias: Map<string, string> } = {

inject: {
global: "unenv/runtime/node/_global",
process: "unenv/runtime/node/process",
Buffer: ["buffer", "Buffer"],
process: "unenv/runtime/node/process/index",
Buffer: ["unenv/runtime/node/buffer/index", "Buffer"],
performance: "unenv/runtime/polyfill/performance",
},

Expand Down

0 comments on commit d9d4d03

Please sign in to comment.