Skip to content

Commit de083b0

Browse files
committed
Fixed issue with SSR for private sites.
1 parent a2f8d06 commit de083b0

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)