rename resolveElectron arg0

This commit is contained in:
草鞋没号 2022-01-25 07:35:39 +08:00
parent bc1865042d
commit 70a6c0e762

View File

@ -35,7 +35,7 @@ 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 // https://github.com/caoxiemeihao/electron-vue-vite/issues/52
export function resolveElectron(dict: Parameters<typeof resolve>[0] = {}): Plugin[] { export function resolveElectron(resolves: Parameters<typeof resolve>[0] = {}): Plugin[] {
const builtins = builtinModules.filter(t => !t.startsWith('_')) const builtins = builtinModules.filter(t => !t.startsWith('_'))
return [ return [
@ -52,7 +52,7 @@ export function resolveElectron(dict: Parameters<typeof resolve>[0] = {}): Plugi
resolve({ resolve({
electron: electronExport(), electron: electronExport(),
...builtinModulesExport(builtins), ...builtinModulesExport(builtins),
...dict, ...resolves,
}) })
] ]