aboutsummaryrefslogtreecommitdiff
path: root/src/runtime.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime.js')
-rw-r--r--src/runtime.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/runtime.js b/src/runtime.js
index 96c1c2d6f..a76b3f077 100644
--- a/src/runtime.js
+++ b/src/runtime.js
@@ -69,7 +69,8 @@ export var __commonJS = (cb, name) => {
});
// If it's a namespace export without .default, pretend .default is the same as mod.exports
} else if (
- typeof mod.exports === "object" &&
+ (typeof mod.exports === "object" ||
+ typeof mod.exports === "function") &&
!("default" in mod.exports)
) {
var defaultValue = mod.exports;
@@ -184,3 +185,9 @@ export var __reExport = (target, module, desc) => {
});
return target;
};
+
+if (typeof globalThis.process === "undefined") {
+ globalThis.process = {
+ env: {},
+ };
+}