feat: use Node.js in Renderer process
This commit is contained in:
1 parent
e2cedd24cf
commit
0566305c79
4 files changed
+15
-13
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user