Hacker News new | ask | show | jobs
by andreasklinger 3576 days ago
rollup can only load the functions of lodash you actually use into your bundle
1 comments

So can lodash. That's what the author is doing here by using

  import throttle from 'lodash/throttle';
rather than

  import { throttle } from 'lodash';