From 253c65b00aec69a9cae5dfb57f5843060cc6fd0c Mon Sep 17 00:00:00 2001 From: william Date: Sat, 31 Oct 2026 21:07:26 +0100 Subject: [PATCH] fix(build): remove stale captureWorker build entry electron.vite.config.ts still pointed to src/main/coach/captureWorker.ts, deleted in a prior cleanup commit, which broke `npm run build` with an unresolved entry error. Nothing loads a worker thread anymore, so the custom rollup input is removed entirely. Co-Authored-By: Claude Sonnet 5 --- Max Avatar/electron.vite.config.ts | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/Max Avatar/electron.vite.config.ts b/Max Avatar/electron.vite.config.ts index cfe513f..c9a8964 100644 --- a/Max Avatar/electron.vite.config.ts +++ b/Max Avatar/electron.vite.config.ts @@ -3,18 +3,7 @@ import { defineConfig } from 'electron-vite' import react from '@vitejs/plugin-react' export default defineConfig({ - main: { - build: { - rollupOptions: { - // captureWorker est charge a l'execution via `new Worker(...)` (node:worker_threads) : - // il lui faut son propre fichier de sortie, distinct du bundle principal index.js. - input: { - index: resolve('src/main/index.ts'), - captureWorker: resolve('src/main/coach/captureWorker.ts') - } - } - } - }, + main: {}, preload: {}, renderer: { publicDir: resolve('assets'),