If you download Firebase JS SDK you only need to add one dependency:
firebase
From there you can access all different modules based on your import attributes:
import { initializeApp } from 'firebase/app';
import { getFirestore, collection, getDocs } from 'firebase/firestore/lite';
And then any library that won't be used is automatically removed if you use any tree-shaking tool.
How can I achieve something similar? I'm looking to build a collection of packages for our organization so that, instead of having everyone working and updating 15 packages, having a single package that can be divided into modules/imports so a project only imports the necessary modules.
I have been looking for some days and I don't even know how to name this approach.
If anyone could link me to a tutorial, a document or anything to be able to start my investigation, I would appreciate it a lot.
Thank you.