fix: preload not being loaded
create vite generated a different tsconfig.node.json that outputs to mjs instead of js
This commit is contained in:
parent
40b89a1de8
commit
3e0a45c0f4
1 changed files with 1 additions and 1 deletions
|
|
@ -12,7 +12,7 @@ function createWindow(): void {
|
|||
autoHideMenuBar: true,
|
||||
...(process.platform === 'linux' ? { icon } : {}),
|
||||
webPreferences: {
|
||||
preload: join(__dirname, '../preload/index.js'),
|
||||
preload: join(__dirname, '../preload/index.mjs'),
|
||||
sandbox: false
|
||||
}
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue