diff --git a/README.md b/README.md index a2dacb2..edc488d 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ # firebase-service After writing the same code twice in different projects, I figured I should - share it. It's nothing major, just a facade around the Firebase sdk. \ No newline at end of file + share it. It's nothing major, just a facade around the Firebase sdk. + \ No newline at end of file diff --git a/src/experimental/firebase-service.js b/src/experimental/firebase-service.js index 4d42a2a..79d54bf 100644 --- a/src/experimental/firebase-service.js +++ b/src/experimental/firebase-service.js @@ -1,4 +1,5 @@ -let firebase; +import firebase from 'firebase/app'; + let uuid; class FirebaseService { @@ -7,7 +8,6 @@ class FirebaseService { constructor(name, { atomicServerTime = false } = {}) { uuid = require('uuid/v4'); name = name || uuid(); - firebase = require('firebase/app'); require('firebase/database'); require('firebase/auth'); this.name = name;