Fix electron-builder: remove type:module, use vite.config.mts instead

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>
This commit is contained in:
Sucukdeluxe 2026-02-28 06:28:45 +01:00
parent 63fd402083
commit b906d8a2bd
2 changed files with 0 additions and 1 deletions

View File

@ -5,7 +5,6 @@
"main": "build/main/main/main.js", "main": "build/main/main/main.js",
"author": "Sucukdeluxe", "author": "Sucukdeluxe",
"license": "MIT", "license": "MIT",
"type": "module",
"scripts": { "scripts": {
"dev": "concurrently -k \"npm:dev:main:watch\" \"npm:dev:renderer\" \"npm:dev:electron\"", "dev": "concurrently -k \"npm:dev:main:watch\" \"npm:dev:renderer\" \"npm:dev:electron\"",
"dev:renderer": "vite", "dev:renderer": "vite",