I’ve been playing around with bundle-visualizer and, in the process of trying to make my client bundle as small as possible (I’m obsessed), I found that collection2-core (7.3KB) and simpl-schema (39.8KB) are being added to my client bundle. Since I’m working with apollo and I’m defining my collections to be server side only, I would like to remove the above mentioned packages from my client bundle. Any suggestions?
I’ve tried adding a copy of collection2-core into packages folder in my root app and changing the api.export directive to api.export(‘Collection2’, [‘server’]); but the package is still showing in my client bundle. I guess it’s tightly coupled with Minimongo? I’ve also tried removing the minimongo dependency and removing all the client side code from the package but didn’t work either
Here is the repo in case you want to take a look:
Any help would be really appreacited!