BerkeleyTrue / redux-epic

Better async and server side rendering in React with Observables
47 stars 9 forks source link

feat(build): Reduce package size by not bundling externals #52

Closed Bouncey closed 6 years ago

Bouncey commented 6 years ago

By using webpack for the production build, we are able to choose not to bundle external libs that would be expected in the destination code base.

This webpack config excludes all external modules that start with react, prop-types and rx.

The previous module size was over 1MB. Using this webpack config, the module size becomes 42.9kB.

coveralls commented 6 years ago

Coverage Status

Coverage remained the same at 78.899% when pulling eba54d3c63d13a541cab924058deecb994789f82 on Bouncey:feat/shakeExternals into 8f2c4a1a6d232dc10267da959e855cef266de1ea on BerkeleyTrue:master.

BerkeleyTrue commented 6 years ago

This package does not provide a bundle, so the actual size of a bundle is not a direct property of this repo.

Happy Coding