Rebuild AgentCompany Electron app

This commit is contained in:
ZacharyZhang-NY committed 2026-05-20 23:27:00 -04:00
1 parent bc5daa6eb8
commit fcf6d90731
56 files changed
+8667

No files matched your search

+30
View File
@@ -0,0 +1,30 @@
import { resolve } from "node:path";
import { defineConfig, externalizeDepsPlugin } from "electron-vite";
import react from "@vitejs/plugin-react";
export default defineConfig({
main: {
plugins: [externalizeDepsPlugin()],
build: {
rollupOptions: {
input: resolve(__dirname, "src/main/index.ts"),
},
},
},
preload: {
plugins: [externalizeDepsPlugin()],
build: {
rollupOptions: {
input: resolve(__dirname, "src/preload/index.ts"),
output: {
format: "cjs",
entryFileNames: "index.js",
},
},
},
},
renderer: {
root: resolve(__dirname, "src/renderer"),
plugins: [react()],
},
});