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

The entire Lodash library is being imported #277

Closed
sant3001 opened this issue May 29, 2024 · 1 comment
Closed

The entire Lodash library is being imported #277

sant3001 opened this issue May 29, 2024 · 1 comment

Comments

@sant3001
Copy link

Lodash is being imported with this syntax:

import _ from 'lodash';

This is bad for bundle size as the entire Lodash library is being imported. Instead, the import statements should look like this:

import _get from 'lodash/get';
import _isEqual from 'lodash/isEqual';
import _findIndex from 'lodash/findIndex';
import _assign from 'lodash/assign';
@sant3001
Copy link
Author

sant3001 commented Jul 9, 2024

This issue has been resolved. Thanks!

@sant3001 sant3001 closed this as completed Jul 9, 2024
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

Successfully merging a pull request may close this issue.

1 participant