are you client-side libs not already separated from your server-side libs?
I've found it easier just to do that already due to previously trying to load a large lib that had some server-side only module references that immediately error out on the client-side (e.g. cache)