Skip to content

Commit 893421b

Browse files
committed
fix(node/process): support process.env shims
1 parent b403b1c commit 893421b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/node/process/_process.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ Item.prototype.run = function () {
156156
this.fun.apply(null, this.array);
157157
};
158158
process.title = "unenv";
159-
process.env = {};
159+
process.env = globalThis.process?.env || {};
160160
process.argv = [];
161161
// @ts-ignore
162162
process.version = ""; // empty string to avoid regexp issues

0 commit comments

Comments
 (0)