Fixing Bug : Error no such file directory

Fixing wrong electron file path causing error no such file directory when `npm run dev`
This commit is contained in:
Anshor J 2022-12-27 09:58:49 +07:00 committed by GitHub
parent 4b03aac9fa
commit 057818aac9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -23,8 +23,8 @@ export default defineConfig({
react(), react(),
electron({ electron({
include: [ include: [
'electron', 'electron/main',
'preload', 'electron/preload',
], ],
transformOptions: { transformOptions: {
sourcemap: isDevelopment sourcemap: isDevelopment
@ -61,4 +61,4 @@ function debounce<Fn extends (...args: any[]) => void>(fn: Fn, delay = 299): Fn
clearTimeout(t) clearTimeout(t)
t = setTimeout(() => fn(...args), delay) t = setTimeout(() => fn(...args), delay)
}) as Fn }) as Fn
} }