From 70a6c0e762abc29178e6094a1c4620c31765e14c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8D=89=E9=9E=8B=E6=B2=A1=E5=8F=B7?= <308487730@qq.com> Date: Tue, 25 Jan 2022 07:35:39 +0800 Subject: [PATCH] rename resolveElectron arg0 --- configs/vite-renderer.config.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configs/vite-renderer.config.ts b/configs/vite-renderer.config.ts index 867afcd..cd3b738 100644 --- a/configs/vite-renderer.config.ts +++ b/configs/vite-renderer.config.ts @@ -35,7 +35,7 @@ export default defineConfig({ // ------- For use Electron, NodeJs in Renderer-process ------- // https://github.com/caoxiemeihao/electron-vue-vite/issues/52 -export function resolveElectron(dict: Parameters[0] = {}): Plugin[] { +export function resolveElectron(resolves: Parameters[0] = {}): Plugin[] { const builtins = builtinModules.filter(t => !t.startsWith('_')) return [ @@ -52,7 +52,7 @@ export function resolveElectron(dict: Parameters[0] = {}): Plugi resolve({ electron: electronExport(), ...builtinModulesExport(builtins), - ...dict, + ...resolves, }) ]