-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Labels
enhancementNew feature or requestNew feature or request
Description
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request