Skip to content
This repository was archived by the owner on May 17, 2023. It is now read-only.

Conversation

@Pelsin
Copy link
Contributor

@Pelsin Pelsin commented Apr 20, 2023

Thanks for maintaining the great GP2040-CE project, doing my first build and came across this lovely project <3
Saw an opportunity to specifically help out in this part of the code, hope that is ok!

Importing specific lodash methods individually drastically reduces the bundle as it wont include the entire lodash library.

Result from running npm run build

Before

before

After

after

Only tested this by running npm run dev as i don't have access to a device yet. Please verify!

FeralAI added a commit to FeralAI/WebConfigurator that referenced this pull request Apr 22, 2023
Copy link
Contributor

@arntsonl arntsonl left a comment

Choose a reason for hiding this comment

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

Nice, thank you for the clean-up! That's a fantastic reduction in size for a simple change.

@arntsonl arntsonl merged commit e71ceac into OpenStickCommunity:main Apr 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants