From a12367e712752573e6632e5c276cb7a43ff659b1 Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Fri, 1 Dec 2023 11:31:57 +0100 Subject: [PATCH] chore: remove __DEV__ --- src/auth/index.ts | 2 +- src/global.d.ts | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/auth/index.ts b/src/auth/index.ts index d28cc039..2bd0c6fb 100644 --- a/src/auth/index.ts +++ b/src/auth/index.ts @@ -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.` ) diff --git a/src/global.d.ts b/src/global.d.ts index d1785b3d..8678d4e0 100644 --- a/src/global.d.ts +++ b/src/global.d.ts @@ -1,4 +1,3 @@ // Global compile-time constants -declare var __DEV__: boolean declare var __BROWSER__: boolean declare var __CI__: boolean