OptionaladditionalExtra CLI args passed to the Electron binary before the entry file.
OptionalclearClear the terminal before each launch. Defaults to false.
OptionalcwdWorking directory for the spawned process. Defaults to process.cwd().
OptionaldebounceDebounce in ms before a rebuild triggers a restart. Defaults to 150.
OptionalelectronPath to the Electron binary to launch. Defaults to resolving the electron
package. Set this when the electron package isn't resolvable from this
library (e.g. when it's linked into another project).
OptionalentryEntry file resolved against the bundle output directory. Defaults to main.js.
OptionalenvExtra environment variables merged onto process.env.
OptionalloggerCustom logger. Defaults to a labelled console logger.
OptionalmanageInstall process signal handlers that stop Electron and exit the host process.
Defaults to true; embedded hosts such as the Vite plugin default this to false.
OptionalstdinEnable interactive stdin commands (rs, start, stop, …). Defaults to true.
Options accepted by createElectronRunner.