Open
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