Local addon: debug, console.log and watch script

Hey there!
I am trying to build a plugin for the first time.
I have three questions regarding the development workflow:

  • No matter the watch rebuilds the main.ts file (or I rebuild it manually), it does not get updated until I completely restart the app. Is there a way to get the changes with a simple refresh (cmd + R)?

  • console.log does not seems to work inside the builded main.ts file. Am I missing something? Is there another way?

  • Is there a way to wait for the electron to be ready inside the main script? I could not find an equivalent to electron.on(‘ready’, ()=>{});

Thanks for your help, and sorry if it some beginners questions, as I am new to electron.
Bye!