Skip to content

Commit

Permalink
Fix node process polyfill for deno (close #261)
Browse files Browse the repository at this point in the history
  • Loading branch information
ije committed Feb 5, 2022
1 parent 1dce105 commit 3d8b077
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/build-npm.go
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,7 @@ esbuild:
if task.Target != "node" {
if bytes.Contains(outputContent, []byte("__Process$")) {
if task.Target == "deno" {
fmt.Fprintf(buf, `import __Process$ from "https://deno.land/std@%s/node/process.ts";%s__Process$.env.NODE_ENV="%s";%s`, denoStdNodeVersion, eol, nodeEnv, eol)
fmt.Fprintf(buf, `import __Process$ from "https://deno.land/std@%s/node/process.ts";%s`, denoStdNodeVersion, eol)
} else {
fmt.Fprintf(buf, `import __Process$ from "/v%d/node_process.js";%s__Process$.env.NODE_ENV="%s";%s`, task.BuildVersion, eol, nodeEnv, eol)
}
Expand Down

0 comments on commit 3d8b077

Please sign in to comment.