Currently if you use lodash in a Node.js environment (no bundling involved), you can import individual functions like:
import chunk from 'lodash/chunk';
If we want to migrate to es-toolkit there's no minimal import that does not use barrel files. The closest to this would be:
import { chunk } from 'es-toolkit/array';
But this import loads a minimum of 60 other files.
It would be better if we were allowed to import each individual function, e.g.:
import { chunk } from 'es-toolkit/array/chunk';
Currently if you use
lodashin a Node.js environment (no bundling involved), you can import individual functions like:If we want to migrate to
es-toolkitthere's no minimal import that does not use barrel files. The closest to this would be:But this import loads a minimum of 60 other files.
It would be better if we were allowed to import each individual function, e.g.: