When using electron-forge or electron-builder we generally build our Windows apps for both ia32 and x64.
On the surface, the optional dependencies route seems like a good idea but it doesn't work in the above case because npm optional modules are installed for the current nodejs architecture, not for the target Electron arch.
None of the Electron tooling appears aware of binaries via optional dependencies route so it doesn't work for one of the architectures.