Skip to content

chore: remove lodash and emojione #675

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

Merged
merged 3 commits into from
Oct 18, 2023
Merged

Conversation

afonsojramos
Copy link
Member

@afonsojramos afonsojramos commented Oct 17, 2023

Small experiment of removal of lodash and emojione, our biggest culprits in terms of bundle size.

Regarding lodash, it is a no brainer. It removes almost 600Kb and it doesn't affect readability that much, if at all.
Regarding emojione, I'm a bit torn, because we would be relying on the OS render of the emojis, which means that emojis will look different depending on where it is running. Which reduces consistency (?)

Before

image

After

image

@afonsojramos afonsojramos force-pushed the chore/clean-dependencies branch from 40ad52e to a5e6b27 Compare October 18, 2023 00:42
@bmulholland
Copy link
Collaborator

On the other hand, maybe OS emojis will make it feel more natural in that environment? Hard to say.

We could try it. Easy to roll back :)

@afonsojramos afonsojramos merged commit 25ac94a into main Oct 18, 2023
@afonsojramos afonsojramos deleted the chore/clean-dependencies branch October 18, 2023 13:08
@setchy setchy added the dependency Dependency updates label Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependency Dependency updates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants