Files
opencode/packages/desktop-electron/electron.vite.config.ts
2026-03-02 11:42:53 +08:00

33 lines
633 B
TypeScript

import { defineConfig } from "electron-vite"
import appPlugin from "@opencode-ai/app/vite"
export default defineConfig({
main: {
build: {
rollupOptions: {
input: { index: "src/main/index.ts" },
},
},
},
preload: {
build: {
rollupOptions: {
input: { index: "src/preload/index.ts" },
},
},
},
renderer: {
plugins: [appPlugin],
publicDir: "../app/public",
root: "src/renderer",
build: {
rollupOptions: {
input: {
main: "src/renderer/index.html",
loading: "src/renderer/loading.html",
},
},
},
},
})