aboutsummaryrefslogtreecommitdiff
path: root/src/js/thirdparty/isomorphic-fetch.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/js/thirdparty/isomorphic-fetch.ts')
-rw-r--r--src/js/thirdparty/isomorphic-fetch.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/js/thirdparty/isomorphic-fetch.ts b/src/js/thirdparty/isomorphic-fetch.ts
new file mode 100644
index 000000000..51fa2975f
--- /dev/null
+++ b/src/js/thirdparty/isomorphic-fetch.ts
@@ -0,0 +1,5 @@
+const bunFetch = Bun.fetch;
+const fetch = (...args: Parameters<typeof bunFetch>) => bunFetch(...args);
+fetch.default = fetch;
+fetch.fetch = fetch;
+export default fetch;