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

Use specific lodash dependencies to avoid pulling in entire library #8

Open
ajsharp opened this issue Mar 2, 2021 · 2 comments
Open

Comments

@ajsharp
Copy link

ajsharp commented Mar 2, 2021

No description provided.

@webmasterkai
Copy link
Member

I thought the https://github.com/lodash/babel-plugin-lodash babel lodash plugin took care of this automatically. Is it not working as expected? Maybe I have a bad config somewhere?

@Oleksii14
Copy link

@webmasterkai yeah, right. But on some platforms, e.g. Vite js, this plugin does not work. Can you please change the imports to be like

import camelCase from 'lodash/camelCase'

?
Thanks in advance 👍🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants