Closed Bouncey closed 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.
react
prop-types
rx
The previous module size was over 1MB. Using this webpack config, the module size becomes 42.9kB.
Coverage remained the same at 78.899% when pulling eba54d3c63d13a541cab924058deecb994789f82 on Bouncey:feat/shakeExternals into 8f2c4a1a6d232dc10267da959e855cef266de1ea on BerkeleyTrue:master.
This package does not provide a bundle, so the actual size of a bundle is not a direct property of this repo.
Happy Coding
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
andrx
.The previous module size was over 1MB. Using this webpack config, the module size becomes 42.9kB.