Skip to content

Commit 9752cca

Browse files
committedJan 2, 2023
Remove URLPattern ponyfill for other envs
1 parent c4bb71d commit 9752cca

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed
 

‎.changeset/angry-monkeys-fail.md

+5
Original file line numberDiff line numberDiff line change
@@ -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

-4
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,4 @@ module.exports.btoa = globalThis.btoa;
1414
module.exports.TextEncoder = globalThis.TextEncoder;
1515
module.exports.TextDecoder = globalThis.TextDecoder;
1616
module.exports.URLPattern = globalThis.URLPattern;
17-
if (!module.exports.URLPattern) {
18-
const urlPatternModule = require('urlpattern-polyfill');
19-
module.exports.URLPattern = urlPatternModule.URLPattern;
20-
}
2117
module.exports.createFetch = () => globalThis;

0 commit comments

Comments
 (0)
Please sign in to comment.