-
Notifications
You must be signed in to change notification settings - Fork 841
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
Say no - to lodash #360
Comments
Is the impetus to remove lodash just bundle size or is there more to it than that? |
Bundle size and limiting number & scope of external dependencies. |
I started looking into this today, and would like to help out. As a starting point, would it be suitable to open a PR which changes a couple of # current
import _ from 'lodash'
import { utilA, utilB } from 'lodash'
# proposed
import utilA from 'lodash/utilA'
import utilB from 'lodash/utilB' Although the approach I'm proposing here is a bit repetitive, my understanding is that it enables Webpack to bundle-split It appears that these two modules would need to change:
eui/src/components/token/token.tsx Line 21 in 52c326b
Getting rid of |
Removing |
Awesome, I'll likely make that contribution at the start of next week 😄 |
👋 Hey there. This issue hasn't had any activity for 180 days. We'll automatically close it if that trend continues for another week. If you feel this issue is still valid and needs attention please let us know with a comment. |
Note that if you remove lodash from EUI (a noble goal!) when you use it in Kibana you will still have lodash. |
Agreed that this is a noble goal, but given the size of EUI's backlog and many other higher priority tech debt items to work on, it's unlikely we'll be working on this as a team anytime soon. We're going to go ahead and close this as a result, but if anyone else is interested in contributing to EUI or taking lead on this, we will gladly welcome your contributions. |
Get rid of lodash dependency!
The text was updated successfully, but these errors were encountered: