Part of code suddenly runs in main process



I’m working on an electron project. My main.js manages the window and loads the index.html. Every other piece of javascript is loaded through index.html.

Today I was surprised that some of my console.log statements are printed in the terminal rather than in the dev console. Does it mean that code fraction is running in the main process? Shouldn’t that be impossible since the code that contains the console.log statements was included in my index.html?