diff options
Diffstat (limited to 'src/js/thirdparty/isomorphic-fetch.js')
-rw-r--r-- | src/js/thirdparty/isomorphic-fetch.js | 6 |
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; |