Some checks failed
Release Electron App / release-desktop (push) Failing after 8m13s
27 lines
691 B
TypeScript
27 lines
691 B
TypeScript
import { defineConfig } from 'vite';
|
|
|
|
// https://vitejs.dev/config
|
|
export default defineConfig({
|
|
build: {
|
|
rollupOptions: {
|
|
// Externalize native Node modules — they're rebuilt by electron-forge
|
|
external: [
|
|
'better-sqlite3',
|
|
'@github/copilot-sdk',
|
|
'@github/copilot',
|
|
// LangChain — externalize to avoid bundling Node.js-specific code
|
|
'@langchain/core',
|
|
'@langchain/langgraph',
|
|
'@langchain/openai',
|
|
'@langchain/anthropic',
|
|
'@langchain/langgraph-checkpoint',
|
|
'@langchain/langgraph-sdk',
|
|
'vectordb',
|
|
],
|
|
output: {
|
|
entryFileNames: 'main.js',
|
|
},
|
|
},
|
|
},
|
|
});
|