Skip to content

Commit eda1095

Browse files
committed
format comment
1 parent 41549bb commit eda1095

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

packages/util/src/defaults.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff 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
*/
5962
const getDefaultsFromEnvVariable = (): FirebaseDefaults | undefined => {
6063
if (typeof process === 'undefined' || typeof process.env === 'undefined') {

0 commit comments

Comments
 (0)