first commit

This commit is contained in:
2026-04-09 21:35:06 +08:00
commit 22fe6e069c
38 changed files with 12631 additions and 0 deletions

21
vite.main.config.mjs Normal file
View File

@@ -0,0 +1,21 @@
import { defineConfig } from 'vite';
// https://vitejs.dev/config
export default defineConfig({
build: {
outDir: '.vite/build',
lib: {
entry: 'src/main/index.js',
formats: ['cjs'],
fileName: 'main'
},
rollupOptions: {
external: [
'electron',
// Node.js built-ins
'path', 'fs', 'os', 'net', 'http', 'https', 'url', 'util', 'events',
'stream', 'crypto', 'child_process', 'worker_threads', 'assert'
]
}
}
});