I have noticed running find node_modules -path '*/lodash' that a lot of packages includes lodash, and by looking on the package.json it's even the exact same version.
Because lodash it's heavy (4.5MB), if all of them share the exact same memory allocation (by using a symbolic link), I should be able to reduce the size of the node_modules folder by at least 20MB, only by linking lodash modules together.
A good script should be able to find more packages rather than simply lodash, and probably save a lot more space.
Does anyone know a script/module that is able to do that? Or I should implement it myself?
via Maurizio Carboni
No comments:
Post a Comment