Re:Show HN: In-view.js – Get notified when DOM elements ente...
by andreasklinger on Saturday August 27, 2016 @11:59AM
(#12372856)
rollup can only load the functions of lodash you actually use into your bundle
[ Parent
| on HN ]
Re:Show HN: In-view.js – Get notified when DOM elements ente...
by tdumitrescu on Saturday August 27, 2016 @01:04PM
(#12373170)
So can lodash. That's what the author is doing here by using
import throttle from 'lodash/throttle';
rather than import { throttle } from 'lodash';