You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -31,16 +32,34 @@ import pkg from './package.json';
31
32
32
33
constutil=require('./rollup.shared');
33
34
34
-
// Customize how import.meta.url is polyfilled in cjs nodejs build. We use it to be able to use require() in esm.
35
-
// It only generates the nodejs version of the polyfill, as opposed to the default polyfill which
36
-
// supports both browser and nodejs. The browser support is unnecessary and doesn't work well with Jest. See https://github.com/firebase/firebase-js-sdk/issues/5687
37
-
functionimportMetaUrlPolyfillPlugin(){
35
+
// Customize how import.meta.url is polyfilled in cjs nodejs build. We use it to
36
+
// be able to use require() in esm. It only generates the nodejs version of the
37
+
// polyfill, as opposed to the default polyfill which supports both browser and
38
+
// nodejs. The browser support doesn't work well with Jest.
39
+
// See https://github.com/firebase/firebase-js-sdk/issues/5687
40
+
// Although this is a cjs Node build and shouldn't require the browser option,
41
+
// Vercel apps using this break on deployment, but work in local development.
42
+
// See https://github.com/firebase/firebase-js-sdk/issues/5823
0 commit comments