Skip to content

Package: Replace lodash with es-toolkitย #12015

@tordans

Description

@tordans

There is this JavaScript Ecosystem Project that tries to modernize the ecosystem by helping packages to modernize their codebase โ€“ https://e18e.dev/docs/replacements/.

They have a list of suggestions for packages that have a more modern alternative โ€“ย for example for lodash https://github.com/es-tooling/module-replacements/blob/main/docs/modules/lodash-underscore.md?plain=1

I looked into our usage of lodash and it looks like only use a couple of functions that are well supported by https://es-toolkit.dev/

Migration to es-toolkit should reduce our bundles size and be a bit faster in some cases.


The question for this issue is: Is this something worth doing that has a change to be merged?


It looks like right now there is no treeshaking happening(?)

Image

Side node: We also have which could be replaced by the same es-toolkit.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    chore-dependencyImprovements to one of iD's dependencies

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions