mirror of
https://github.com/hanzoai/firebase-js-sdk.git
synced 2026-09-24 16:59:10 +00:00
Format comment containing process.env (#6874)
This commit is contained in:
committed by
GitHub
parent
b1e0f04769
commit
71863d3cd3
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@firebase/util': patch
|
||||
---
|
||||
|
||||
Reformat a comment that causes compile errors in some build toolchains.
|
||||
@@ -53,8 +53,11 @@ const getDefaultsFromGlobal = (): FirebaseDefaults | undefined =>
|
||||
|
||||
/**
|
||||
* Attempt to read defaults from a JSON string provided to
|
||||
* process.env.__FIREBASE_DEFAULTS__ or a JSON file whose path is in
|
||||
* process.env.__FIREBASE_DEFAULTS_PATH__
|
||||
* process(.)env(.)__FIREBASE_DEFAULTS__ or a JSON file whose path is in
|
||||
* process(.)env(.)__FIREBASE_DEFAULTS_PATH__
|
||||
* The dots are in parens because certain compilers (Vite?) cannot
|
||||
* handle seeing that variable in comments.
|
||||
* See https://github.com/firebase/firebase-js-sdk/issues/6838
|
||||
*/
|
||||
const getDefaultsFromEnvVariable = (): FirebaseDefaults | undefined => {
|
||||
if (typeof process === 'undefined' || typeof process.env === 'undefined') {
|
||||
|
||||
Reference in New Issue
Block a user