add resolveElectron link

This commit is contained in:
草鞋没号 2022-01-18 22:41:12 +08:00
parent 6ee9b8ce18
commit 4e07560a17
1 changed files with 2 additions and 1 deletions

View File

@ -30,7 +30,8 @@ export default defineConfig({
},
})
// ----------------- For use Electron, NodeJs in Renderer-process -----------------
// ------- For use Electron, NodeJs in Renderer-process -------
// https://github.com/caoxiemeihao/electron-vue-vite/issues/52
export function resolveElectron(): Plugin[] {
const builtins = builtinModules.filter(t => !t.startsWith('_'))