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 6cc580c commit d4cf6f7Copy full SHA for d4cf6f7
packages/fetch/src/lib.node.js
@@ -1,15 +1,6 @@
1
-import * as WebFetch from "./fetch.js"
+export { default, Headers, Request, Response } from "./fetch.js"
2
3
-export { ReadableStream, Blob, FormData } from './package.js';
4
// Node 18+ introduces fetch API globally and it doesn't support our use-cases yet.
5
// For now we always use the polyfill.
+export { ReadableStream, Blob, FormData } from './package.js'
6
7
-// Marking export as a DOM File object instead of custom class.
8
-export const fetch = /** @type {typeof globalThis.fetch} */
9
- WebFetch.fetch
10
-
11
-export const Headers = WebFetch.Headers
12
-export const Request = WebFetch.Request
13
-export const Response = WebFetch.Response
14
15
-export default fetch
0 commit comments