From 25d57413dcecfbcfea2b0a54516827b4a19e05da Mon Sep 17 00:00:00 2001 From: thiefjim Date: Tue, 17 Nov 2020 13:35:03 +0800 Subject: [PATCH] fix: Don't override process if it defined --- globals.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/globals.js b/globals.js index dd9cf7f..807ed53 100644 --- a/globals.js +++ b/globals.js @@ -1,5 +1,5 @@ global.Buffer = require('buffer').Buffer; -global.process = require('process'); +global.process = global.process || require('process'); // Needed so that 'stream-http' chooses the right default protocol. global.location = {