From 2315c55e56b79f39c788b1ef5a503a144a584b4f Mon Sep 17 00:00:00 2001 From: Brian Miller Date: Mon, 12 Nov 2018 22:04:35 -0500 Subject: [PATCH] Fixed Firebase Console Warning ``` It looks like you're using the development build of the Firebase JS SDK. When deploying Firebase apps to production, it is advisable to only import the individual SDK components you intend to use. For the module builds, these are available in the following manner (replace with the name of a component - i.e. auth, database, etc): CommonJS Modules: const firebase = require('firebase/app'); require('firebase/'); ES Modules: import firebase from 'firebase/app'; import 'firebase/'; ``` --- src/app/core/auth.service.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/app/core/auth.service.ts b/src/app/core/auth.service.ts index 8eb0eb74..cd984632 100644 --- a/src/app/core/auth.service.ts +++ b/src/app/core/auth.service.ts @@ -1,8 +1,7 @@ import { Injectable } from '@angular/core'; import { Router } from '@angular/router'; -import { firebase } from '@firebase/app'; -import { auth } from 'firebase'; +import { auth, firestore } from 'firebase/app'; import { AngularFireAuth } from '@angular/fire/auth'; import { AngularFirestore,