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
Copy file name to clipboardExpand all lines: packages/firestore/rollup.config.js
+18-1
Original file line number
Diff line number
Diff line change
@@ -29,6 +29,22 @@ import { generateBuildTargetReplaceConfig } from '../../scripts/build/rollup_rep
29
29
30
30
constutil=require('./rollup.shared');
31
31
32
+
// Customize how import.meta.url is polyfilled in cjs nodejs build. We use it to be able to use require() in esm.
33
+
// It only generates the nodejs version of the polyfill, as opposed to the default polyfill which
34
+
// 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
0 commit comments