Webpack Electron Require Is Not Defined