Using this boilerplate as reference I created an Electron app. It uses webpack to bundle the scripts and express server to host it.
Webpack config is practically sam
Best option at the time of this answer is to use the MemoryRouter, worked for me :)