Skip to content

Commit

Permalink
Merge pull request #223 from electron-vite/v0.28.4
Browse files Browse the repository at this point in the history
V0.28.4
  • Loading branch information
caoxiemeihao authored Mar 17, 2024
2 parents 20a9537 + 1e2771d commit 49083ae
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 0.28.4 (2024-03-17)

- 4f7748c chore: restore `vite-plugin-electron-renderer` in `peerDependencies`
- 412ed9b fix(#214): catch the `process.kill(pid)` error

## 0.28.3 (2024-03-13)

- a300c08 fix: remove electron@28 version pre-deps
Expand Down
8 changes: 8 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,14 @@
"test": "vitest run",
"prepublishOnly": "npm run build && npm run test"
},
"peerDependencies": {
"vite-plugin-electron-renderer": "*"
},
"peerDependenciesMeta": {
"vite-plugin-electron-renderer": {
"optional": true
}
},
"devDependencies": {
"rollup": "^4.13.0",
"typescript": "^5.4.2",
Expand Down
4 changes: 3 additions & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,5 +172,7 @@ function killTree(tree: PidTree) {
}
}

process.kill(tree.pid)
try {
process.kill(tree.pid) // #214
} catch { /* empty */ }
}

0 comments on commit 49083ae

Please sign in to comment.