aboutsummaryrefslogtreecommitdiff
path: root/src/js/thirdparty/isomorphic-fetch.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/js/thirdparty/isomorphic-fetch.js')
-rw-r--r--src/js/thirdparty/isomorphic-fetch.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/js/thirdparty/isomorphic-fetch.js b/src/js/thirdparty/isomorphic-fetch.js
index 7b36684e2..59c8a6d06 100644
--- a/src/js/thirdparty/isomorphic-fetch.js
+++ b/src/js/thirdparty/isomorphic-fetch.js
@@ -1 +1,5 @@
-export default globalThis.fetch;
+const bunFetch = Bun.fetch;
+const fetch = (...args) => bunFetch(...args);
+fetch.default = fetch;
+fetch.fetch = fetch;
+export default fetch;