title: Trying to move away from nodeIntegration
body: <p>I have an electron project that uses the nodeIntegration for a lack of understanding for while now. I am electron-webpack and electron-builder to build my project. It all works fine, but my main goal is to create a slim version of the app as a web service.</p>
  <p>As a first step, I'd like to be able to run the current desktop version with nodeIntegration disabled. I now have the time to make some changes to the project, but it's quite difficult to find help, because often the tip is to just enable nodeIntegration, when some of these errors appear.</p>
  <p>I have already moved node dependencies and ipc calls to the electron context bridge in my preload script.
  I was hoping this would be enough to make evertything run again. But currently, when I start the project, I get a few errors, that I don't quite understand:</p>
  <h2>Missing require()</h2>
  <p>My index.html contains the following scripts:</p>
  <pre><code>&lt;script&gt;require('module').globalPaths.push(&quot;C:/Development/my-app/node_modules&quot;)&lt;/script&gt;    
  &lt;script&gt;require(&quot;source-map-support/source-map-support.js&quot;).install()&lt;/script&gt;
  </code></pre>
  <p>First of all, I don't even know where these are coming from.
  Secondly this is of course not working, since I disabled the node integration.
  I don't know how to fix this issue. Any require is of course creating problem. But the whole goal of this operation is to keep nodeIntegration disabled.</p>
  <h2>Module is not defined</h2>
  <p>My renderer.js now starts with:</p>
  <pre><code>module.exports =
  </code></pre>
  <p>Which throws</p>
  <blockquote>
  <p>Uncaught ReferenceError: module is not defined</p>
  </blockquote>
  <p>How can I avoid these problems?</p>