developit / developit/preact-redux

huge filesize overhead - twice the size of react+redux implementation?

Open
#26 6 comments 5 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
285
Forks
26
PR merge metrics
No merged PRs in 30d

Description

hi!

we're considering using preact + preact-redux as an alternative to react + react-redux. This is pretty much solely due to bundle size savings migrating to preact.

However preact-redux seems to take up a crazy amount of space. On a fresh preact-cli app with only 1 additional dependency outside of redux and preact-redux, preact-redux is 35% of the total bundle size at 41.8KB on a production build. Way larger than preact, preact-router, polyfills, etc.

![screen shot 2018-01-09 at 4 36 10 pm](https://user-images.githubusercontent.com/1609336/34744679-0c9f867e-f55c-11e7-8c8a-27d57d3a68d7.png)

Meanwhile in a react app production build I am seeing redux @ 5.76KB + react-redux @ 11.79KB === 17.55KB total, versus preact-redux's 41.9KB. Something doesn't seem right here!

Both are using latest versions of respective libraries (Redux + react/preact-redux).

any ideas how we can bring this bundle size down? It's unclear to me why this would be over twice the filesize.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.