Looks like they finally added ESM module support in Electron 28 so I'll look into updating the project again this year https://github.com/electron/electron/issues/21457