electron integration
This commit is contained in:
11
vite.main.config.mjs
Normal file
11
vite.main.config.mjs
Normal 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'],
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user