rename resolveElectron arg0

This commit is contained in:
草鞋没号 2022-01-25 07:36:20 +08:00
parent 8a9e5c2ab0
commit c8197ed7d9
1 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,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<typeof resolve>[0] = {}): Plugin[] {
export function resolveElectron(resolves: Parameters<typeof resolve>[0] = {}): Plugin[] {
const builtins = builtinModules.filter(t => !t.startsWith('_'))
return [
@ -58,7 +58,7 @@ export function resolveElectron(dict: Parameters<typeof resolve>[0] = {}): Plugi
resolve({
electron: electronExport(),
...builtinModulesExport(builtins),
...dict,
...resolves,
})
]