Skip to content

Better lodash optimization #104

Open
@eric-burel

Description

@eric-burel

Is your feature request related to a problem? Please describe.
Lodash has a weird legacy way of exporting packages

Describe the solution you'd like
Have both "lodash/get" and "import { get } from "lodash"" to work and be optmized
Describe alternatives you've considered
Need to test https://github.com/josteph/esbuild-plugin-lodash
It should work for the named import, but we need to check that it doesn't break "import get from "lodash/get"" as well
Additional context
When using ESM we need to add ".js" when we import a file from the repo that is not a module itself, see nuxt/nuxt#13404
And also we need to avoid importing lodash as a whole

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions