The "type": "module" in package.json caused tsup to emit .cjs files instead
of .js, breaking the electron-builder entry point check. Using .mts extension
for vite config achieves ESM for Vite without affecting the rest of the package.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>