Hacker News new | past | comments | ask | show | jobs | submit login
Smaller Lodash Bundles with Webpack and Babel (nolanlawson.com)
1 point by kiyanwang on March 24, 2018 | hide | past | favorite | 1 comment



As a couple of people point out in the comments, this is an explanation of needlessly complex machinery for achieving better bundling. If you're using a bundler that understands reasonably current technology (ES modules) like webpack (4), Rollup, etc., it "just works" if you use the alternative lodash-es packaging. A few years ago it may have been reasonable and necessary to pick up something like a specific webpack plug-in to use a specific library efficiently, that seems "retro" in 2018. We should all raise our expectations.

Here's an example of lodash-es in use, this is in a Angular example program but there is nothing Angular specific about the use of lodash.

https://github.com/AngularBootCamp/filtered-list-via-observa...




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: