-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
babel-plugin-lodash #1653
Comments
Unfortunately, no. It cannot be used without ejecting. You can, however, use the method described here to reduce your bundle size. |
Thanks a lot! |
No problem! |
It didn't work for me. The bundle size became larger Using the lodash that came with create-react-app
Then i ran
and here are the results
|
You may be depending on a different version of lodash than you're installing using that unsupported behavior, but I suggest using the slash method not dot. |
Ok, I'll try it. |
I tried lodash/groupby and lodash/foreach and here are the results
|
Like I said, "Using the lodash that came with create-react-app" is not a supported behavior and properly importing lodash is probably grabbing a newer, larger version of the library. Sorry, but I don't think you can tune this much more without ejecting. 😬 Though I don't think |
All And yea, you need to |
Yup, after doing a lot of trial and error even with Dan's suggestion, the difference wasn't that much. However, guess what I found out? I changed the way I was importing Material-UI and OMG, I brought it down to 154KB. I'm very happy for that :) Thanks to both you! Oh, I LOVE CREATE-REACT-APP so much! This is the best creation next to loaf of bread. :) |
I'm having a hard time digging through the closed issues looking for solutions on how to use this plugin. Can it be used with create-react-app without ejecting our app?
Thanks!
The text was updated successfully, but these errors were encountered: