3 ms·
npm you either have as many copies of a dependency as its used, or you flatten it and have the same problem. go codifies foo -> foo2 as foo -> foo/v2
by arccy 3y ago
npm you either have as many copies of a dependency as its used, or you flatten it and have the same problem.
go codifies foo -> foo2 as foo -> foo/v2
- vvanpo 3y agoNPM and other Node.js package managers happily deduplicate dependencies are compatible within the specified version constraints. So if 3 different modules in your build specifies `foo^2` and two other modules specify `foo^3`, in general you will have two copies of `foo` loaded.