ELECTRON_RUN_AS_NODE in packaged app


From the terminal, I can do something like

electron myapp

To get electron running as a node instance. Now, how can I achieve the same behavior when running a packaged app? The behavior I would like to get is that when one clicks on the packaged app an electron instance with ELECTRON_RUN_AS_NODE environment variable set.

Is it possible to get such a thing?


there was definitely an env var to do exactly this! however, i’ve been out of the game for 1.5 years… and i can’t remember! did you find it?