Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
45 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ export default defineBuildConfig({ | |
}, | ||
entries: [ | ||
'src/index', | ||
'src/native' | ||
'src/native', | ||
'src/polyfill' | ||
] | ||
}) |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import _fetch, { | ||
Blob as _Blob, | ||
File as _File, | ||
FormData as _FormData, | ||
Headers as _Headers, | ||
Request as _Request, | ||
Response as _Response | ||
} from 'node-fetch' | ||
|
||
globalThis.fetch = globalThis.fetch || _fetch as unknown as typeof globalThis.fetch | ||
|
||
globalThis.Blob = globalThis.Blob || _Blob | ||
globalThis.File = globalThis.File || _File | ||
globalThis.FormData = globalThis.FormData || _FormData | ||
globalThis.Headers = globalThis.Headers || _Headers | ||
globalThis.Request = globalThis.Request || _Request as unknown as typeof globalThis.Request | ||
globalThis.Response = globalThis.Response || _Response as unknown as typeof globalThis.Response |