title: Allow electron `requires` to passthrough untouched in Vite
body: <p>When trying to use <code>custom-electron-titlebar</code> , I get an error when it tries to access <code>path</code> . I've added</p>
  <pre class="lang-js prettyprint-override"><code>build: { rollupOptions: { external: [&quot;electron&quot;, ...builtinModules],   }}
  </code></pre>
  <p>to my vite config, and that seems to allow me to <code>require('path')</code> in my own code just fine, but when the imported code inside <code>custom-electron-titlebar</code> tries to do the same, it fails to work. It appears to be a wrapped/proxy object, if I call it directly I get an error.</p>
  <pre><code>Module &quot;path&quot; has been externalized for browser compatibility and cannot be accessed in client code.
  </code></pre>
  <p>Is there a way to get these requires to passthrough as well?</p>