So turns out, to externalize the unnecessary modules in Sequelize, I have to explicitly mention in inside the electron()
block, rather than the top level scope in defineConfig
. I was under the impression writing it in the top level scope would apply to both the main as well as the renderer process but guess not. It only applied to the renderer process I believe. Better to explicitly mention inside the main process of electron()
.