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:
co-authored by
Claude Sonnet 5
parent
0d85a8a85e
commit
253c65b00a
@@ -3,18 +3,7 @@ import { defineConfig } from 'electron-vite'
|
|||||||
import react from '@vitejs/plugin-react'
|
import react from '@vitejs/plugin-react'
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
main: {
|
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')
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
preload: {},
|
preload: {},
|
||||||
renderer: {
|
renderer: {
|
||||||
publicDir: resolve('assets'),
|
publicDir: resolve('assets'),
|
||||||
|
|||||||
Reference in New Issue
Block a user