News for hackers. Stuff that matters.
Re:Bundle Phobia: find the cost of adding an npm package to ... by vlunkr on Monday December 18, 2017 @03:34PM (#15955234)
I think perhaps the biggest problem is the lack of a flat dependency system. So not only does your project depend on isArray, it may depend on 5 different versions of it. The sheer number of deps a seemingly normal React app has is crazy. Especially with webpack, babel, etc.
Re:Bundle Phobia: find the cost of adding an npm package to ... by lugrugzo on Monday December 18, 2017 @05:12PM (#15955991)
Npm3 has flat dependency system.
Re:Bundle Phobia: find the cost of adding an npm package to ... by mstade on Monday December 18, 2017 @11:56PM (#15957868)
It doesn’t. It has a deduping system, which may still leave you with multiple versions installed if there are incompatible version requirements in the dependency tree.

A flat system would mean there’s only ever a single version installed. Or at least, I think that’s what OP means, since that’s the only definition I’ve ever heard.

Re:Bundle Phobia: find the cost of adding an npm package to ... by Kamshak on Tuesday December 19, 2017 @02:35AM (#15958430)
It's what was there with bower but that has a lot of problems as well. So many in fact that everyone has moved to npm