Skip to content

build: use lodash-es to replace lodash imports#371

Merged
digi-monkey merged 1 commit intodigi-monkey:masterfrom
ahonn:feat/lodash-es
Dec 15, 2023
Merged

build: use lodash-es to replace lodash imports#371
digi-monkey merged 1 commit intodigi-monkey:masterfrom
ahonn:feat/lodash-es

Conversation

@ahonn
Copy link
Copy Markdown
Collaborator

@ahonn ahonn commented Dec 13, 2023

Using lodash-es instead of lodash can reduce the size of the production bundle.
In the future, we should avoid using import _ from 'lodash-es'. This import will bundle the entire lodash.

Before:
CleanShot 2023-12-13 at 17 15 57

After:
CleanShot 2023-12-13 at 17 13 12

@vercel
Copy link
Copy Markdown

vercel Bot commented Dec 13, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
flycat-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 15, 2023 11:24am

@digi-monkey
Copy link
Copy Markdown
Owner

digi-monkey commented Dec 13, 2023

please rebase @ahonn

@digi-monkey digi-monkey merged commit d7c1441 into digi-monkey:master Dec 15, 2023
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.

2 participants