We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi!
import _ from 'lodash' is inflating the size of this package unnecessarily (26kb!). The library only uses _.camelCase and _.isArray.
import _ from 'lodash'
_.camelCase
_.isArray
_.isArray isn't necessary, as Array.isArray() is faster and has vast browser support.
Array.isArray()
_.camelCase can be replaced with lodash.camelcase, which is 2kb.
lodash.camelcase
Before:
After:
Tests pass.
The text was updated successfully, but these errors were encountered:
perf(dependencies): shrink dependency footprint
137b62d
use `lodash.camelcase` and `Array.isArray` instead of _all_ of lodash hibiken#2
Thanks for the quick merge and the useful utility.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Hi!
import _ from 'lodash'
is inflating the size of this package unnecessarily (26kb!). The library only uses_.camelCase
and_.isArray
._.isArray
isn't necessary, asArray.isArray()
is faster and has vast browser support._.camelCase
can be replaced withlodash.camelcase
, which is 2kb.Before:
![image](https://user-images.githubusercontent.com/582828/42880895-ed370d64-8a63-11e8-9489-b3c0d1f8a274.png)
After:
![image](https://user-images.githubusercontent.com/582828/42881433-2bab3e48-8a65-11e8-834c-395dc395fe6a.png)
Tests pass.
The text was updated successfully, but these errors were encountered: