aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Zilin Zhu <zhuzilinallen@gmail.com> 2022-08-04 09:31:39 +0800
committerGravatar GitHub <noreply@github.com> 2022-08-03 18:31:39 -0700
commit58feb81c36d310b081cfae6f480f9d57585c6f64 (patch)
tree79212f4013e20a05786a3746605c9adfda1a2437
parentf4ac41b5d94c0dd571f71d8635e0bafb662c859f (diff)
downloadbun-58feb81c36d310b081cfae6f480f9d57585c6f64.tar.gz
bun-58feb81c36d310b081cfae6f480f9d57585c6f64.tar.zst
bun-58feb81c36d310b081cfae6f480f9d57585c6f64.zip
use import.meta.require instead of import (#973)
-rw-r--r--src/bun.js/http.exports.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bun.js/http.exports.js b/src/bun.js/http.exports.js
index c8edc9cf5..b039a14c7 100644
--- a/src/bun.js/http.exports.js
+++ b/src/bun.js/http.exports.js
@@ -1,5 +1,5 @@
-import { EventEmitter } from "node:events";
-import { Readable, Writable } from "node:stream";
+const { EventEmitter } = import.meta.require("node:events");
+const { Readable, Writable } = import.meta.require("node:stream");
export function createServer(options, callback) {
return new Server(options, callback);