Compile DLL for windows to call by another application

Can I compile electron down to a DLL that I can call with other Windows applications. Specifically I want to create a DLL to call from Gamemaker (in windows). The DLL will run javascript that communicates with a server and passes information back and forth from the game.

I am not in game development but I think that HaXe might help you.

Here is one video on HaXe frontend/backend game architecture.

Note that HaXe can create Electron apps.

Just a different permutation of options.

So can Electron itself compile to a DLL instead of and EXE?

Electron is a framework for creating native applications with web technologies like JavaScript, HTML, and CSS.

In other words: no