You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I’m evaluating Instant to rewrite a Firebase app.
I was surprised to see that devtools.js is part of my production bundle, even though I use init with the devtool parameter set to false:
In the image above you can also see 2.49KB of StorageAPI.js even though I am not using storage features (yet) in my POC todo app.
Is it because the db.storage is not tree shakable from the rest of Instant? By the way, are all the db functions stuffed into db even if I only use one or two of them? That would explain why I get lighthouse warnings about 25Kb of JS being unused. The coverage tab of the Chrome devtools tells me around 40% of my JS bundle is here for nothing (after I manually used all the features)!
Hi, I’m evaluating Instant to rewrite a Firebase app.
I was surprised to see that devtools.js is part of my production bundle, even though I use
init
with thedevtool
parameter set tofalse
:In the image above you can also see 2.49KB of StorageAPI.js even though I am not using storage features (yet) in my POC todo app.
Is it because the
db.storage
is not tree shakable from the rest of Instant? By the way, are all the db functions stuffed intodb
even if I only use one or two of them? That would explain why I get lighthouse warnings about 25Kb of JS being unused. The coverage tab of the Chrome devtools tells me around 40% of my JS bundle is here for nothing (after I manually used all the features)!It reminds me 2021 Firebase with the old "namespaced" way vs the new "modular" (tree shakable) way. Firebase had to move to a modular version because the namespaced one was much too bloated. Is a "modular" version of Instant also planned?
Cheers,
Laurent
The text was updated successfully, but these errors were encountered: