News for hackers. Stuff that matters.
Re:I've Just Liberated My Modules by joshmanders on Wednesday March 23, 2016 @08:54AM (#11343945)
While I agree with you, tree shaking is relatively new in the JavaScript world thanks to Webpack 2 and Rollup.js before that, if you had a dependency you brought it's whole lib into your project whether you used one method or all of them. So just including Lodash wasn't an option for people who cared about loading times for their users. A 17 line module was.
Re:I've Just Liberated My Modules by larkinrichards on Wednesday March 23, 2016 @06:33PM (#11348807)
Closure Compiler's advanced mode (tree shaking) has been around since 2010.
Re:I've Just Liberated My Modules by jdd on Friday March 25, 2016 @12:55AM (#11358552)
Lodash has been modular since 2013.