Iddo Gino
6a00e47c64
Merge f7162326e294632f56c75bb1ff11a78e75ade0d7 into 98d30e57e36263b3a99e0255fd88fe0b751d4d24
2026-09-28 12:43:19 -04:00
alex8088
8df70754ca
perf: build compatibility target for Electron 42, 43, 44
2026-09-25 00:44:14 +08:00
Iddo Gino
f7162326e2
fix(dev): forward termination signals to Electron child
...
Spawn the Electron binary directly in dev/preview mode but forward
SIGINT/SIGTERM/SIGHUP from the electron-vite parent to the child,
matching Electron's own CLI wrapper (node_modules/electron/cli.js).
Without this, Ctrl-C sends SIGINT to the foreground process group once:
the Node parent exits immediately (no handler) and the Electron child
gets only a single SIGINT. On macOS, an Electron app whose before-quit
handler calls preventDefault() and later calls app.quit() can stall in
AppKit's event loop in that path. Under a direct 'electron .' launch
the CLI shim forwards SIGINT as well, so Electron gets it twice and
exits cleanly. Matching that behavior here fixes the hang.
Fixes #899
2026-04-20 16:33:34 -07:00
alex8088
78a117d5be
perf: build compatibility target for Electron 40, 41
2026-03-21 14:36:18 +08:00
alex8088
a4f7693712
perf: build compatibility target for Electron 39
2025-10-29 00:08:03 +08:00
alex8088
5debb6f83b
refactor: remove Electron 18, 19, 20, 21 build compatilibity target
2025-10-19 16:00:01 +08:00
alex8088
a9b5326544
perf(plugin): enhance path resolution using import.meta.dirname for ES modules
2025-10-19 15:47:35 +08:00
alex8088
b55eb725c4
perf: build compatibility target for Electron 38
2025-09-21 16:52:57 +08:00
alex8088
cbee52c8bb
perf: build compatibility target for Electron 37
2025-06-28 13:12:31 +08:00
jonz94
3d5c9f68a1
perf: build compatibility target for Electron 36 ( #766 )
2025-05-06 10:12:44 +08:00
jonz94
ea144aef19
perf: build compatibility target for Electron 35
2025-03-09 04:16:52 +08:00
alex8088
4b47ef0bd4
perf: build compatilibity target for Electron 34
2025-01-22 21:16:13 +08:00
kye shimizu
5ffd49eddc
perf: build compatilibity target for Electron 33 ( #651 )
2024-11-11 23:49:02 +08:00
alex8088
bf1220875f
perf: build compatilibity target for Electron 32
2024-08-21 21:49:44 +08:00
alex8088
19b42225f8
perf: improve cjs shim
2024-06-22 22:28:08 +08:00
alex8088
d79de5abb6
perf: build compatilibity target for Electron 31
2024-06-13 23:45:44 +08:00
alex8088
6170705eae
perf: build compatilibity target for Electron 30
2024-04-20 23:50:12 +08:00
alex8088
19489a28c8
perf: build compatilibity target for Electron 29
2024-02-24 00:31:41 +08:00
Mikael Finstad
9b04362e12
feat: support for passing arguments to electron in dev and preview commands ( #339 )
2023-12-16 17:11:27 +08:00
alex8088
5de87d681b
refactor: remove Electron 11, 12 build compatilibity target
2023-12-12 23:00:03 +08:00
alex8088
a7b3c65576
perf: build compatilibity target for Electron 28
2023-12-12 22:58:50 +08:00
alex8088
c1e1ca0471
feat: support ESM in Electron
2023-12-12 22:40:37 +08:00
alex8088
cb58ef8649
perf: improve package.json resolve
2023-12-11 22:06:22 +08:00
alex8088
b93a1878c1
feat: migrate to ESM
2023-12-08 22:03:47 +08:00
alex8088
7369960b99
feat(cli): support --noSandbox option for dev and preview command
2023-11-08 23:03:50 +08:00
alex8088
ac47dacc1b
perf: build compatilibity target for Electron 27
2023-10-17 21:57:45 +08:00
alex8088
01163866fb
feat(cli): supports specifying electron entry file ( #270 )
2023-09-08 00:32:43 +08:00
alex8088
670c23b2e1
perf: build compatilibity target for Electron 26
2023-09-07 22:14:02 +08:00
alex8088
342a0556cd
perf: spawn Electron process using parent's stdios ( #236 )
2023-07-29 01:44:26 +08:00
alex8088
9d76799072
feat(cli): add CLI --inspect[-brk] to support debugging without IDEs ( #231 )
2023-07-27 00:33:28 +08:00
alex8088
c26a9ff71c
perf: build compatilibity target for Electron 25
2023-06-03 21:43:17 +08:00
alex8088
a736af835e
perf: build compatilibity target for Electron 24
2023-04-18 23:46:29 +08:00
Greg Knapp
c0d9ad3fd5
Rephase certain error messages, fix typo 'electorn'
2023-03-31 16:37:15 +01:00
alex8088
5ad0747f32
feat: support for renderer debugging ( #130 )
2023-03-11 20:29:06 +08:00
alex8088
b0fc657db4
perf: build compatilibity target for Electron 23
2023-02-08 21:35:49 +08:00
alex8088
f7b4146c56
fix: output duplicate log in vscode debugging #75
2022-12-28 21:54:20 +08:00
alex8088
767aee7464
perf: build compatilibity target for Electron 22
2022-12-01 21:33:05 +08:00
alex8088
97a62b75f2
feat: monorepo support
2022-10-23 21:23:27 +08:00
alex8088
cd0bbb6cfb
perf: cache electron executable path
2022-09-18 01:46:02 +08:00
alex8088
c6bade23b5
chore: use node prefix
2022-09-17 23:47:48 +08:00
alex8088
1bd15486ea
feat: main process and preload scripts support hot reloading ( #7 )
2022-09-08 23:49:30 +08:00