From 3e0a45c0f48380dc8cfc4a387bb9f03190d35f4e Mon Sep 17 00:00:00 2001 From: HerozDotExe <66215011+HerozDotExe@users.noreply.github.com> Date: Sun, 8 Dec 2024 18:00:57 +0100 Subject: [PATCH] fix: preload not being loaded create vite generated a different tsconfig.node.json that outputs to mjs instead of js --- src/main/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/index.ts b/src/main/index.ts index 06e06b4..9aadd8f 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -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 } })