3 ms·
No worries, lodash/debounce can be reduced further with babel+webpack plugins. Assuming the current setup of babel+webpack the difference between your naive ve
by jdd 10y ago
No worries, lodash/debounce can be reduced further with babel+webpack plugins.
Assuming the current setup of babel+webpack the difference between your naive version is just ~0.5 kB.
- nathancahill 10y agoWhich still doubles the size of the library: ~0.6kb to ~1.1kb. So while it's just half a kilobyte, do that over and over, with nested dependencies and it really adds up.