rename resolveElectron arg0
This commit is contained in:
parent
8a9e5c2ab0
commit
c8197ed7d9
|
@ -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,
|
||||
})
|
||||
]
|
||||
|
||||
|
|
Loading…
Reference in New Issue