diff options
author | 2022-08-04 09:31:39 +0800 | |
---|---|---|
committer | 2022-08-03 18:31:39 -0700 | |
commit | 58feb81c36d310b081cfae6f480f9d57585c6f64 (patch) | |
tree | 79212f4013e20a05786a3746605c9adfda1a2437 | |
parent | f4ac41b5d94c0dd571f71d8635e0bafb662c859f (diff) | |
download | bun-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.js | 4 |
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); |