Skip to content

Commit 773c49d

Browse files
authored
Merge branch 'main' into main
2 parents 22a9d59 + de083b0 commit 773c49d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

esbuild-shim.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,13 @@ global.navigator = navigator
2727
global.window = window
2828
global.document = document
2929

30+
// Polyfill URLSearchParams (which is a constructor). Just add a dummy "get" method that returns an empty string
31+
global.URLSearchParams = class {
32+
get() {
33+
return ""
34+
}
35+
}
36+
3037
// Intl polyfill is required until v8go supports Intl
3138
class NoopFormat {
3239
format(arg0) {

0 commit comments

Comments
 (0)