mirror of
https://github.com/electron-vite/electron-vite-vue
synced 2025-01-19 11:56:36 +08:00
Update README.md
This commit is contained in:
parent
e632d8b9ab
commit
c7e6cd6db8
@ -12,7 +12,7 @@ Electron、vue、vite 整合
|
|||||||
|
|
||||||
## 踩坑记
|
## 踩坑记
|
||||||
- import { write } from 'fs' 的这种形式会被 vite 编译成 /@modules/fs?import
|
- import { write } from 'fs' 的这种形式会被 vite 编译成 /@modules/fs?import
|
||||||
const { write } = require('fs') 这种形式就能用了 😉
|
- const { write } = require('fs') 这种形式就能用了 😉
|
||||||
- const { ipcRenderer } = require('electron') 同理
|
- const { ipcRenderer } = require('electron') 同理
|
||||||
|
|
||||||
---
|
---
|
||||||
|
Loading…
x
Reference in New Issue
Block a user