Skip to content

Allow individual function imports #1298

Description

@avaly

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';

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions