We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
URLPattern
1 parent c4bb71d commit 9752ccaCopy full SHA for 9752cca
.changeset/angry-monkeys-fail.md
@@ -0,0 +1,5 @@
1
+---
2
+'@whatwg-node/fetch': patch
3
4
+
5
+Remove unnecessary ponyfill for the envs supporting Fetch by default
packages/fetch/dist/global-ponyfill.js
@@ -14,8 +14,4 @@ module.exports.btoa = globalThis.btoa;
14
module.exports.TextEncoder = globalThis.TextEncoder;
15
module.exports.TextDecoder = globalThis.TextDecoder;
16
module.exports.URLPattern = globalThis.URLPattern;
17
-if (!module.exports.URLPattern) {
18
- const urlPatternModule = require('urlpattern-polyfill');
19
- module.exports.URLPattern = urlPatternModule.URLPattern;
20
-}
21
module.exports.createFetch = () => globalThis;
0 commit comments