Files
iptvnator/docs/development
4grayandClaude Opus 5.5 9b0b9b6944 perf(electron): compile the main process and preload for ES2022
apps/electron-backend/tsconfig.json now sets target ES2022, so the
main-process bundles, the preloads and the backend's Jest specs no longer
downlevel async/await, optional chaining and nullish coalescing for ES2015.
Electron 43 runs them natively in the main process and in the sandboxed
preload. tsconfig.base.json keeps es2015 because other projects inherit it.
useDefineForClassFields stays false, so class fields keep their constructor
assignment semantics and only syntax changes.

main.js + main.app.js + deferred-events.js + main.preload.js shrink from
2,008,115 to 1,853,599 bytes (-7.7%); every inlined __awaiter helper is gone.
Startup did not move measurably: main-process CPU to did-finish-load and the
J1 launch journey were flat in interleaved A/B runs, with identical counters.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-29 21:20:09 +02:00
..