3 ms·
rollup can only load the functions of lodash you actually use into your bundle
by andreasklinger 10y ago
rollup can only load the functions of lodash you actually use into your bundle
- tdumitrescu 10y agoSo can lodash. That's what the author is doing here by using import throttle from 'lodash/throttle'; rather than import { throttle } from 'lodash';