-
Notifications
You must be signed in to change notification settings - Fork 4k
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
RFC: import lodash modules explicitly, vs _ import #830
Comments
We have this done automatically by babel using https://github.com/lodash/babel-plugin-lodash. Compare the src and dist directories to see it in action. |
WAT! get out of town! Cool :) |
Very cool, even more cool is you can pass You can follow this and more optimization work in #731. |
I tried the babel plugin lodash. This is the
Unfortunately my imports do not work anymore after that.
I do the imports per module like this:
Any idea what might be the issue? |
If you're using Please Do Not Necropost! |
problem statement
current implementations do:
import _ from lodash
this means that at bundle time, all of lodash gets included
solution
use fn-specific imports
import get from 'lodash/get'
import uniq from 'lodash/uniq'
bundle sizes will now be small!
The text was updated successfully, but these errors were encountered: