Skip to content

Remove lodash (mostly) #90

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 6 commits into from
Mar 12, 2024
Merged

Remove lodash (mostly) #90

merged 6 commits into from
Mar 12, 2024

Conversation

rkistner
Copy link
Contributor

@rkistner rkistner commented Mar 5, 2024

Remove lodash imports to decrease bundle size. Changes the bundle size of example-vite from 127kB -> 56kB. (This excludes the web workers and SQLite WASM build, but those can be loaded asynchronously).

The only remaining import in the core SDKs is lodash/throttle.

The updated code is not quite equivalent to the previous lodash version, so it needs some testing.

@rkistner rkistner requested a review from stevensJourney March 5, 2024 15:35
stevensJourney
stevensJourney previously approved these changes Mar 7, 2024
@stevensJourney
Copy link
Collaborator

Should we add a changeset for these changes? I think it might be worth while mentioning the decreased bundle size 🤔

@rkistner rkistner requested a review from stevensJourney March 12, 2024 09:58
Copy link
Collaborator

@stevensJourney stevensJourney left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Tested Both todo list apps - they seem to work as before.

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