Have just started integrating recompose into a large webapp and wondering if there are ways to optimise bundle sizes (IE implement code splitting) using recompose (webpack in the background)?
My current use case with recompose is simple - a 'isAuthorised?' HOC which ensures a user is logged in. Most of my routes go thru this single HOC.
I want to be able to code split based on routes, but unsure how to do this with each route being enhanced with isAuthorised HOC.
Using react, redux, react-router, recompose, webpack 2