feat: use Node.js in Renderer process

This commit is contained in:
草鞋没号 committed 2022-10-19 19:11:36 +08:00
1 parent e2cedd24cf
commit 0566305c79
4 files changed
+15 -13

No files matched your search

+8 -3
View File
@@ -65,9 +65,14 @@ To get started, remove the option as shown below. This will [modify the Vite con
```diff
# vite.config.ts
electron({
- renderer: {}
})
export default {
plugins: [
- // Use Node.js API in the Renderer-process
- renderer({
- nodeIntegration: true,
- }),
],
}
```
## ❔ FAQ