Initialize project and ignore local references

This commit is contained in:
ZacharyZhang-NY committed 2026-03-15 22:17:07 -04:00
1 parent a11ac3eaba
commit 2af82b6bb3
132 files changed
+29426

No files matched your search

+62
View File
@@ -0,0 +1,62 @@
import { resolve } from "node:path";
import react from "@vitejs/plugin-react";
import tailwindcss from "@tailwindcss/vite";
import { defineConfig, externalizeDepsPlugin } from "electron-vite";
const bundledMainDependencies = [
"@agentcompany/adapter-claude-local",
"@agentcompany/adapter-codex-local",
"@agentcompany/adapter-gemini-local",
"@agentcompany/adapter-opencode-local",
"@agentcompany/adapter-utils",
];
export default defineConfig({
main: {
plugins: [externalizeDepsPlugin({ exclude: bundledMainDependencies })],
resolve: {
alias: {
"@shared": resolve("src/shared"),
"@main": resolve("src/main"),
},
},
build: {
rollupOptions: {
input: {
index: resolve("src/main/index.ts"),
worker: resolve("src/main/orchestrator/worker.ts"),
},
},
},
},
preload: {
plugins: [externalizeDepsPlugin({ exclude: ["zod"] })],
resolve: {
alias: {
"@shared": resolve("src/shared"),
"@preload": resolve("src/preload"),
},
},
build: {
rollupOptions: {
input: {
index: resolve("src/preload/index.ts"),
},
output: {
format: "cjs",
entryFileNames: "[name].js",
chunkFileNames: "chunks/[name]-[hash].js",
},
},
},
},
renderer: {
resolve: {
alias: {
"@shared": resolve("src/shared"),
"@renderer": resolve("src/renderer"),
},
},
plugins: [react(), tailwindcss()],
},
});