electron integration

This commit is contained in:
Richard Unger
2024-01-27 15:41:39 +01:00
parent 96b305b74d
commit e2f89c0ed3
15 changed files with 12493 additions and 8263 deletions

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

@@ -0,0 +1,11 @@
import { defineConfig } from 'vite';
// https://vitejs.dev/config
export default defineConfig({
resolve: {
// Some libs that can run in both Web and Node.js, such as `axios`, we need to tell Vite to build them in Node.js.
browserField: false,
conditions: ['node'],
mainFields: ['module', 'jsnext:main', 'jsnext'],
},
});