We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d27bf34 commit 875c935Copy full SHA for 875c935
src/lib/types.ts
@@ -1,5 +1,3 @@
1
-import crossFetch from 'cross-fetch'
2
-
3
export type Fetch = typeof fetch
4
5
/**
@@ -67,7 +65,7 @@ export abstract class PostgrestBuilder<T> implements PromiseLike<PostgrestRespon
67
65
if (builder.fetch) {
68
66
_fetch = builder.fetch
69
} else if (typeof fetch === 'undefined') {
70
- _fetch = crossFetch
+ _fetch = async (...args) => await (await import('cross-fetch')).fetch(...args)
71
} else {
72
_fetch = fetch
73
}
0 commit comments