Created by: pugnascotia
In order to facilitate server-side rendering (#1100 (closed)), change the production webpack config to package the bundle as a UMD module, making it usable in a number of environments. The module's name is derived from the application's name in package.json
.
For this to be meaningful, the bundle's entrypoint must export a function, so I've added a basic render function to index.js
. The existing browser mount must be wrapped in a guard condition to stop it failing in a server environment.