Update README.md

This commit is contained in:
草鞋没号 2020-09-02 09:30:10 +08:00 committed by GitHub
parent e632d8b9ab
commit c7e6cd6db8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,7 +12,7 @@ Electron、vue、vite 整合
## 踩坑记
- import { write } from 'fs' 的这种形式会被 vite 编译成 /@modules/fs?import
const { write } = require('fs') 这种形式就能用了 😉
- const { write } = require('fs') 这种形式就能用了 😉
- const { ipcRenderer } = require('electron') 同理
---