mirror of
https://github.com/electron-vite/electron-vite-vue
synced 2025-01-31 20:16:36 +08:00
rename resolveElectron arg0
This commit is contained in:
parent
bc1865042d
commit
70a6c0e762
@ -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,
|
||||||
})
|
})
|
||||||
]
|
]
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user