I am trying to use webpack to bind a reaction code that gets the server and client sides displayed. Some libraries I'm trying to use (e.g. glidejs ) fully assume that they run in a browser.
I actually do not use lib until the ComponDidMount component or at some other point that will not be executed on the server.
How can I require them, but basically they just do nothing in the node environment?
Glidejs specifically wants jquery, window and document. The jQuery rendering seems fine, but I don't know what to do with the window and the document.
source share