Skip to content

Commit

Permalink
chore: remove __DEV__
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Dec 1, 2023
1 parent 486b415 commit a12367e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/auth/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export function useFirebaseAuth(): Auth | null
* @returns the Auth instance
*/
export function useFirebaseAuth(name?: string) {
if (__DEV__ && name != null) {
if (process.env.NODE_ENV !== 'production' && name != null) {
console.warn(
`[VueFire] useFirebaseAuth() no longer accepts a name parameter to enable tree shaking. If you have multiple applications, you must use "getAuth(firebaseApp)" or "getAuth(useFirebaseApp(name))" instead.`
)
Expand Down
1 change: 0 additions & 1 deletion src/global.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Global compile-time constants
declare var __DEV__: boolean
declare var __BROWSER__: boolean
declare var __CI__: boolean

0 comments on commit a12367e

Please sign in to comment.