Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better lodash optimization #104

Open
eric-burel opened this issue Mar 11, 2022 · 0 comments
Open

Better lodash optimization #104

eric-burel opened this issue Mar 11, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@eric-burel
Copy link
Collaborator

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

@eric-burel eric-burel added the enhancement New feature or request label Mar 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant