Rollup plugin that (re)launches Electron on every bundle write and shuts the process down when the watcher closes.
Inert outside watch mode: a one-shot rollup -c must not spawn an app and hang the build.
rollup -c
Optional
Electron runner options shared across rebuilds.
A Rollup plugin that owns the Electron runner during watch mode.
import electronRun from "vite-plugin-electron-run/rollup-plugin";export default { input: "src/main.ts", output: { dir: "dist", format: "cjs" }, plugins: [electronRun({ entry: "main.js" })],}; Copy
import electronRun from "vite-plugin-electron-run/rollup-plugin";export default { input: "src/main.ts", output: { dir: "dist", format: "cjs" }, plugins: [electronRun({ entry: "main.js" })],};
Rollup plugin that (re)launches Electron on every bundle write and shuts the process down when the watcher closes.
Inert outside watch mode: a one-shot
rollup -cmust not spawn an app and hang the build.