aboutsummaryrefslogtreecommitdiff
path: root/src/node-fallbacks/@vercel_fetch.js
diff options
context:
space:
mode:
authorGravatar dave caruso <me@paperdave.net> 2023-06-24 02:23:39 -0400
committerGravatar GitHub <noreply@github.com> 2023-06-23 23:23:39 -0700
commit5ae8e5d773c6b57fe166681ffa9cdc153f69427b (patch)
treefa7331a152f6d947ee49977109f77162b669924a /src/node-fallbacks/@vercel_fetch.js
parent4ff920c915403dd7abac18c6a80a7b9c468ee52b (diff)
downloadbun-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/@vercel_fetch.js')
-rw-r--r--src/node-fallbacks/@vercel_fetch.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node-fallbacks/@vercel_fetch.js b/src/node-fallbacks/@vercel_fetch.js
index a8de45222..276b4bc9f 100644
--- a/src/node-fallbacks/@vercel_fetch.js
+++ b/src/node-fallbacks/@vercel_fetch.js
@@ -1,5 +1,5 @@
// This is just a no-op. Intent is to prevent importing a bunch of stuff that isn't relevant.
-module.exports = (wrapper = "Bun" in globalThis ? Bun.fetch : globalThis.fetch) => {
+export default (wrapper = "Bun" in globalThis ? Bun.fetch : globalThis.fetch) => {
async function vercelFetch(url, opts = {}) {
// Convert Object bodies to JSON if they are JS objects
if (