aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/bun.js')
-rw-r--r--src/bun.js/http.exports.js10
-rw-r--r--src/bun.js/https.exports.js2
2 files changed, 4 insertions, 8 deletions
diff --git a/src/bun.js/http.exports.js b/src/bun.js/http.exports.js
index 29421b836..433fd7aa0 100644
--- a/src/bun.js/http.exports.js
+++ b/src/bun.js/http.exports.js
@@ -1487,13 +1487,7 @@ var defaultObject = {
return (_globalAgent ??= new Agent());
},
set globalAgent(agent) {},
+ [Symbol.for("CommonJS")]: 0,
};
-var wrapper =
- (0,
- function () {
- return defaultObject;
- });
-
-wrapper[Symbol.for("CommonJS")] = true;
-export default wrapper;
+export default defaultObject;
diff --git a/src/bun.js/https.exports.js b/src/bun.js/https.exports.js
index d79deedb3..30e0469f5 100644
--- a/src/bun.js/https.exports.js
+++ b/src/bun.js/https.exports.js
@@ -1 +1,3 @@
export * from "node:http";
+const HTTP = import.meta.require("node:http");
+export default HTTP;