add resolveElectron link

This commit is contained in:
草鞋没号 2022-01-18 22:39:45 +08:00
parent 9b1bf2d8b7
commit f360a5e732

View File

@ -24,7 +24,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[] { export function resolveElectron(): Plugin[] {
const builtins = builtinModules.filter(t => !t.startsWith('_')) const builtins = builtinModules.filter(t => !t.startsWith('_'))