wufe / react-particles-js

Particles.js for React
https://rpj.bembi.dev/
MIT License
1.15k stars 108 forks source link

Bundle Size #92

Closed diogotcorreia closed 4 years ago

diogotcorreia commented 4 years ago

The size of this repo is really big compared to the original project (particles.js).

According to BundlePhobia, the current min+gzipped size is 35kB while the original particles.js is just 5.6kB. Furthermore, versions 2.4.2 and older have a much more acceptable size at 11.1kB.

Why has the size suddenly increased in 2.5.0?

wufe commented 4 years ago

Thanks for your report.

Bundle size has been restored to 15k gzipped (Bundlephobia). I switched to es modules for lodash' isEqual.

New version is available: v2.7.0.

gabrielmlinassi commented 3 years ago

@Wufe bundle is 44.1kB Minified + Gzipped as of current version @3.4.1. Notice tsparticles is responsible for 86.8% of bundle size. Is there a way to decrease the size?