Skip to content

Commit 8cd9841

Browse files
committed
Use global fetch when available
1 parent 39c26cd commit 8cd9841

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/utils/runtime.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export function runtimeFetch(
3535
options?: RuntimeRequestInit,
3636
): Promise<RuntimeResponse> {
3737
const fetchImpl =
38-
isBunRuntime && typeof globalThis.fetch === 'function'
38+
typeof globalThis.fetch === 'function'
3939
? globalThis.fetch.bind(globalThis)
4040
: nodeFetch;
4141

0 commit comments

Comments
 (0)