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 <noreply@anthropic.com>
This commit is contained in:
william
2026-10-31 21:07:26 +01:00
co-authored by Claude Sonnet 5
parent 0d85a8a85e
commit 253c65b00a
+1 -12
View File
@@ -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'),