Open platform to collect and prioritize feedback
fix: add Intl polyfill for SSR
goenning930cc4b79024
diff --git a/esbuild-shim.js b/esbuild-shim.jsindex 4007b848a..2b44236c4 100644--- a/esbuild-shim.js+++ b/esbuild-shim.js@@ -17,7 +17,18 @@ const window = {}const navigator = {}-global.navigator = navigatorglobal.window = windowglobal.document = document++// Intl polyfill is required until v8go supports Intl+class NoopFormat {+ format(arg0) {+ return arg0 ? arg0.toString() : ""+ }+}++global.Intl = {+ NumberFormat: NoopFormat,+ DateTimeFormat: NoopFormat,+}