-
-
Notifications
You must be signed in to change notification settings - Fork 129
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
Use babel-plugin-lodash to optimize lodash imports #525
Conversation
Codecov Report
@@ Coverage Diff @@
## master #525 +/- ##
==========================================
- Coverage 96.6% 96.58% -0.03%
==========================================
Files 130 130
Lines 2625 2605 -20
==========================================
- Hits 2536 2516 -20
Misses 89 89
Continue to review full report at Codecov.
|
@foxhound87 in this case, will the separate babel configs work for you? |
It should be possible to use configFile option for this one https://babeljs.io/docs/en/options#configfile |
@zetoke ok try this solution. |
@foxhound87 I've found an easier workaround ccce4db |
Great job! I merged and released. |
🎉 This PR is included in version 2.0.7 🎉 The release is available on: Your semantic-release bot 📦🚀 |
@foxhound87 thank you very much! 🙇 |
Currently mobx-react-form includes the whole lodash during bundling.
Using the approach with babel-plugin-lodash and making lodash imports more granular I reduced size of my app by around 25kb that is pretty good size.
Before:
After: