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:
HerozDotExe 2024-12-08 18:00:57 +01:00
parent 40b89a1de8
commit 3e0a45c0f4

View file

@ -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
}
})