Skip to content

Commit 3ac7fcd

Browse files
authored
Merge pull request #188 from electron-vite/v0.15.5
V0.15.5
2 parents f606551 + 39e94ba commit 3ac7fcd

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 0.15.5 (2023-12-12)
2+
3+
- f57a60a fix(#182, #187): correctly `options.reload()`
4+
- f606551 Merge pull request #178 from electron-vite/v0.15.4
5+
16
## 0.15.4 (2023-11-08)
27

38
- 532e0b4 Merge pull request #177 from Siykt/main

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vite-plugin-electron",
3-
"version": "0.15.4",
3+
"version": "0.15.5",
44
"description": "Electron 🔗 Vite",
55
"main": "./dist/index.js",
66
"types": "./dist/index.d.ts",

src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@ export default function electron(options: ElectronOptions | ElectronOptions[]):
7676
if (options.onstart) {
7777
options.onstart.call(this, {
7878
startup,
79-
reload() {
80-
server.ws.send({ type: 'full-reload' })
81-
},
79+
reload: process.electronApp
80+
? () => server.ws.send({ type: 'full-reload' })
81+
: startup,
8282
})
8383
} else {
8484
startup()

0 commit comments

Comments
 (0)