diff options
author | 2023-06-24 02:23:39 -0400 | |
---|---|---|
committer | 2023-06-23 23:23:39 -0700 | |
commit | 5ae8e5d773c6b57fe166681ffa9cdc153f69427b (patch) | |
tree | fa7331a152f6d947ee49977109f77162b669924a /src/node-fallbacks/http.js | |
parent | 4ff920c915403dd7abac18c6a80a7b9c468ee52b (diff) | |
download | bun-5ae8e5d773c6b57fe166681ffa9cdc153f69427b.tar.gz bun-5ae8e5d773c6b57fe166681ffa9cdc153f69427b.tar.zst bun-5ae8e5d773c6b57fe166681ffa9cdc153f69427b.zip |
Make node-fallbacks build as esm not cjs / Fix `node-fetch` (#3377)
* Make node-fallbacks build as esm not cjs.
* fix stuff
Diffstat (limited to 'src/node-fallbacks/http.js')
-rw-r--r-- | src/node-fallbacks/http.js | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/node-fallbacks/http.js b/src/node-fallbacks/http.js index 3f025710f..4bb5b4a0d 100644 --- a/src/node-fallbacks/http.js +++ b/src/node-fallbacks/http.js @@ -1 +1,13 @@ -export * from "stream-http"; +import http from "stream-http"; +export default http; +export var { + // + request, + get, + ClientRequest, + IncomingMessage, + Agent, + globalAgent, + STATUS_CODES, + METHIDS, +} = http; |