From e050831b9573dfa1cdd88e95a412d212d1d902fc Mon Sep 17 00:00:00 2001 From: ayal Date: Mon, 26 Apr 2021 17:45:00 +0300 Subject: [PATCH 1/2] fix(firebase/app):use import instead of require --- src/experimental/firebase-service.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; From d65bec052d466bc487380605ecc6c43060cf7c76 Mon Sep 17 00:00:00 2001 From: ayal Date: Mon, 26 Apr 2021 17:49:41 +0300 Subject: [PATCH 2/2] dummy --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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