File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' @firebase/util ' : patch
3+ ---
4+
5+ Reformat a comment that causes compile errors in some build toolchains.
Original file line number Diff line number Diff line change @@ -53,8 +53,11 @@ const getDefaultsFromGlobal = (): FirebaseDefaults | undefined =>
5353
5454/**
5555 * Attempt to read defaults from a JSON string provided to
56- * process.env.__FIREBASE_DEFAULTS__ or a JSON file whose path is in
57- * process.env.__FIREBASE_DEFAULTS_PATH__
56+ * process(.)env(.)__FIREBASE_DEFAULTS__ or a JSON file whose path is in
57+ * process(.)env(.)__FIREBASE_DEFAULTS_PATH__
58+ * The dots are in parens because certain compilers (Vite?) cannot
59+ * handle seeing that variable in comments.
60+ * See https://github.com/firebase/firebase-js-sdk/issues/6838
5861 */
5962const getDefaultsFromEnvVariable = ( ) : FirebaseDefaults | undefined => {
6063 if ( typeof process === 'undefined' || typeof process . env === 'undefined' ) {
You can’t perform that action at this time.
0 commit comments