Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Firebase ES2015 imports
import * as firebase from 'firebase/app'; // Provides firebase-app.js only
import 'firebase/auth'; // Not named, just naked
const app = firebase.initializeApp({ });
console.log(app.auth()); // auth object
console.log(app.database()); // undefined
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment