angular-firestarter icon indicating copy to clipboard operation
angular-firestarter copied to clipboard

Fixed Firebase Console Warning

Open bzmillerboy opened this issue 8 years ago • 0 comments

Fixes 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 <PACKAGE> with the name of a component - i.e. auth, database, etc):

CommonJS Modules:
const firebase = require('firebase/app');
require('firebase/<PACKAGE>');

ES Modules:
import firebase from 'firebase/app';
import 'firebase/<PACKAGE>';

bzmillerboy avatar Nov 13 '18 03:11 bzmillerboy