Skip to content
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

remove lodash from bundle #5040

Merged

Conversation

TheTrio
Copy link
Contributor

@TheTrio TheTrio commented Jul 10, 2022

There was a single occurrence of lodash in app/assets/javascripts/components/students/utils/setOtherEditedArticles.js which caused the entire package to be included in the final bundle. This fixes that.

Lodash is still used by eslint, webpack and other development tools so I've listed it as a dev-dependency.

I've also updated the command for yarn analyze to make sure it analyzes the production bundle and not the development one.

We now use lodash-es everywhere. Since it supports tree shaking, only the functions used are included in the final bundle
This also removes the lodash-webpack-plugin which is no longer required. Lodash is still used by eslint, webpack
and other development tools, so I've listed it as a dev dependency.
@ragesoss ragesoss merged commit 40623e9 into WikiEducationFoundation:master Jul 11, 2022
@TheTrio TheTrio deleted the removeLodashFromBundle branch July 11, 2022 23:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants