My friend and I are almost done with our project. It's basically a now playing/miniplayer app for Spotify. When I was checking the render process console, I had one more warning that I wanted to clear. It was about worldSafeExecuteJavaScript being true and how it's unsafe. I looked farther in to it and it turns out I need to turn on contextIsolation too. I researched more and found out I have that I can't use require in my render process. I tried looking up the documentation and I am confused. We want to make our app secure for the long run, especially since I'm in college and my friend working on it might get busy as his school ramps up; and also since contextIsolation will be true by default in Electron 12.
In our render processes javascript, we just need to require jQuery and ipcRenderer. How would we incorporate contextBridge (I think that's what its called), to import jQuery and ipcRenderer into our javascript for the render process?