ctrlplusb / easy-peasy

Vegetarian friendly state for React
https://easy-peasy.dev
MIT License
5.03k stars 190 forks source link

Inquiry Regarding Bundle Size in easy-peasy v6.0.4 #904

Closed ayoubkhan558 closed 3 months ago

ayoubkhan558 commented 6 months ago

I noticed that the bundle size of easy-peasy v6.0.4 is 35.3 kB (minified) and 11.0 kB (compressed with GZIP). Given the emphasis on optimization in web development, are there plans to reduce this size without compromising functionality? Looking forward to your insights.

jmyrland commented 6 months ago

Hey @ayoubkhan558 !

There are currently no ongoing efforts in reducing the bundle size of easy-peasy.

However, we are open to pull requests if you feel inclined to reduce the footprint of this library while still keeping the same API and behaviour.

As mentioned in the docs, 11kb gzipped is not crazy big - but it might not be the best fit in some cases where footprint is a major concern. In this case, you could look at alternatives to see if there are any candidates with a smaller footprint.

no-stack-dub-sack commented 3 months ago

@ayoubkhan558 closing this for now unless there are any further questions on the topic. Please reopen if you'd like to continue the discussion or are open to submitting a PR. Thanks for your interest!