Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.
Go
fix(desktop): remove type:module — Electron main/preload are CJS
Naiyuan Qing848d79df115a
diff --git a/apps/desktop/electron.vite.config.ts b/apps/desktop/electron.vite.config.tsindex 4512b1b135..f9bf641b6e 100644--- a/apps/desktop/electron.vite.config.ts+++ b/apps/desktop/electron.vite.config.ts@@ -9,14 +9,6 @@ export default defineConfig({},preload: {plugins: [externalizeDepsPlugin()],- build: {- rollupOptions: {- output: {- format: "cjs",- entryFileNames: "[name].cjs",- },- },- },},renderer: {plugins: [react(), tailwindcss()],diff --git a/apps/desktop/package.json b/apps/desktop/package.jsonindex e333a6e451..0b685b42ad 100644--- a/apps/desktop/package.json+++ b/apps/desktop/package.json@@ -2,7 +2,6 @@"name": "@multica/desktop","version": "0.1.0","private": true,- "type": "module","main": "./out/main/index.js","scripts": {"dev": "electron-vite dev",diff --git a/apps/desktop/src/main/index.ts b/apps/desktop/src/main/index.tsindex a7f2522fa1..f44e6ec5c7 100644--- a/apps/desktop/src/main/index.ts+++ b/apps/desktop/src/main/index.ts@@ -15,7 +15,7 @@ function createWindow(): void {show: false,autoHideMenuBar: true,webPreferences: {- preload: join(__dirname, "../preload/index.cjs"),+ preload: join(__dirname, "../preload/index.js"),sandbox: false,},});