I want to clean up the kinda-big Meteor project of ours.
Note: I’m not using dynamic imports (yet).
I thought to use the bundle-visualizer to see which packages can be removed without too much pain.
Here’s a screenshot of the visualizer:
As I’m looking through the packages listed, I can see that I have 2 bundles (named bundle (1) and bundle (2)) when I hover the central grey rings. (Note that both half-circles are almost mirrored counterparts).
Whilst browsing the package dependencies and taking notes on what to remove, after i’m finished with the first half, I’m starting to check out the second half, and to my surprise - it’s the same packages all over. Almost.
There is a slight size difference in both bundles, bundle (1) is 4,42 Mb and bundle(2) is 4,53 Mb so there seem to be some minor (?) differences. But most packages seem to be the same.
My questions now are:
- Does this matter? Is this stuff really built and / or transmitted twice? Even if it’s only being built twice, can we maybe cut down on our build times by changing this to one bundle?
- What do these two bundles mean? When / how are they loaded? Where can I see them? (I can see only see the big all-stuff-in-one-meteor-app-my-name-is-actually-a-hash.js - file being downloaded, i can’t seem to see any dynamic imports in the method calls)
Thanks in advance, best wishes fellow meteorites