Skip to content

Commit df4078c

Browse files
committed
Add alternatives
1 parent 2615fcf commit df4078c

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

packages/firebase/README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,23 @@ _The type information from the import statement will include all of the SDKs,
133133
not just the ones you have `required`, so you could get a runtime error if you
134134
reference a non-required service._
135135

136+
#### Alternative - all-in-one import
137+
138+
>This brings in all Firebase features. We recommend the method above to
139+
>minimize download size by only including the scripts you need.
140+
141+
```js
142+
// This import loads all Firebase services, whether used in your code or not.
143+
import firebase from 'firebase';
144+
```
145+
146+
Or with `require()`:
147+
148+
```js
149+
// This import loads all Firebase services, whether used in your code or not.
150+
var firebase = require('firebase').default;
151+
```
152+
136153
## Get the code (Node.js - server and command line)
137154

138155
### NPM

0 commit comments

Comments
 (0)