Hi Meteor gurus
We’ve found that npm dependencies are duplicated in our (production) bundle, probably caused by local paths imports
Tested on moment (cause it’s big ), but it applies also to other packages.
Project structure (simplified): /packages/utils – just javascript library, depends on moment, installed from npm, exactly the same version as in /app /packages/app – Meteor app, depends on moment installed from npm and utils installed from file:../utils
I just checked my build and moment is only added to bundle/programs/server/packages/mrt_moment.js and mrt_moment-timezone.js it’s just two files there’s nothing else for moment.
What’s your build looking like are you doing anything different in there? Moment is just a tiny file of a few thousand lines.
How are you including moment because in my build packages/utils and packages/app it doesnt get added and on the /bundle/programs/web.browser build it isn’t included.