Skip to content

Commit 0cc2c56

Browse files
committed
[bundle-size][firestore] Refine bundle definition
1 parent 086df7c commit 0cc2c56

File tree

1 file changed

+135
-3
lines changed

1 file changed

+135
-3
lines changed

repo-scripts/size-analysis/bundle-definitions/firestore.json

Lines changed: 135 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,39 @@
2323
"imports": [
2424
"getFirestore",
2525
"doc",
26-
"getDoc",
27-
"setDoc",
26+
"getDoc"
27+
]
28+
}
29+
]
30+
}
31+
]
32+
},
33+
{
34+
"name": "Write data",
35+
"dependencies": [
36+
{
37+
"packageName": "firebase",
38+
"versionOrTag": "latest",
39+
"imports": [
40+
{
41+
"path": "app",
42+
"imports": [
43+
"initializeApp"
44+
]
45+
}
46+
]
47+
},
48+
{
49+
"packageName": "firebase",
50+
"versionOrTag": "latest",
51+
"imports": [
52+
{
53+
"path": "firestore",
54+
"imports": [
55+
"getFirestore",
2856
"collection",
29-
"getDocs"
57+
"doc",
58+
"setDoc"
3059
]
3160
}
3261
]
@@ -98,5 +127,108 @@
98127
]
99128
}
100129
]
130+
},
131+
{
132+
"name": "Query Cursors",
133+
"dependencies": [
134+
{
135+
"packageName": "firebase",
136+
"versionOrTag": "latest",
137+
"imports": [
138+
{
139+
"path": "app",
140+
"imports": [
141+
"initializeApp"
142+
]
143+
}
144+
]
145+
},
146+
{
147+
"packageName": "firebase",
148+
"versionOrTag": "latest",
149+
"imports": [
150+
{
151+
"path": "firestore",
152+
"imports": [
153+
"getFirestore",
154+
"collection",
155+
"doc",
156+
"getDoc",
157+
"query",
158+
"orderBy",
159+
"startAt",
160+
"endBefore"
161+
]
162+
}
163+
]
164+
}
165+
]
166+
},
167+
{
168+
"name": "Persistence",
169+
"dependencies": [
170+
{
171+
"packageName": "firebase",
172+
"versionOrTag": "latest",
173+
"imports": [
174+
{
175+
"path": "app",
176+
"imports": [
177+
"initializeApp"
178+
]
179+
}
180+
]
181+
},
182+
{
183+
"packageName": "firebase",
184+
"versionOrTag": "latest",
185+
"imports": [
186+
{
187+
"path": "firestore",
188+
"imports": [
189+
"getFirestore",
190+
"enableIndexedDbPersistence",
191+
"collection",
192+
"onSnapshot",
193+
"where",
194+
"query",
195+
"enableNetwork",
196+
"disableNetwork"
197+
]
198+
}
199+
]
200+
}
201+
]
202+
},
203+
{
204+
"name": "Transaction",
205+
"dependencies": [
206+
{
207+
"packageName": "firebase",
208+
"versionOrTag": "latest",
209+
"imports": [
210+
{
211+
"path": "app",
212+
"imports": [
213+
"initializeApp"
214+
]
215+
}
216+
]
217+
},
218+
{
219+
"packageName": "firebase",
220+
"versionOrTag": "latest",
221+
"imports": [
222+
{
223+
"path": "firestore",
224+
"imports": [
225+
"getFirestore",
226+
"doc",
227+
"runTransaction"
228+
]
229+
}
230+
]
231+
}
232+
]
101233
}
102234
]

0 commit comments

Comments
 (0)