paypal / react-engine

a composite render engine for universal (isomorphic) express apps to render both plain react views and react-router views
Apache License 2.0
1.45k stars 130 forks source link

Use lodash sub-module instead of main entrypoint #204

Closed jonathansamines closed 6 years ago

jonathansamines commented 6 years ago

React engine is usually used along with tools like webpack or browserify which usually produce smaller bundles out of the box when using lodash submodules instead of the main lodash entrypoint.

We just recently upgraded to use the latest react-engine version, which resulted in a bigger bundle for our applications because the whole lodash module is being imported. At least 40k (no gzip) were added because of this.

jonathansamines commented 6 years ago

Hi @samsel, not sure if you are the right person to look for help, but please take a look if you can :)