turtle-wow-source-kinda/Dumps/Source Code/4 - Development_launcher/main/electron.vite.config.ts

26 lines
516 B
TypeScript
Raw Normal View History

2024-08-06 16:06:40 +00:00
import { resolve } from 'path';
import { defineConfig, externalizeDepsPlugin } from 'electron-vite';
import react from '@vitejs/plugin-react';
const alias = {
'~common': resolve('src/common'),
'~main': resolve('src/main'),
'~renderer': resolve('src/renderer'),
'~build': resolve('build')
};
export default defineConfig({
main: {
resolve: { alias },
plugins: [externalizeDepsPlugin()]
},
preload: {
plugins: [externalizeDepsPlugin()]
},
renderer: {
resolve: { alias },
plugins: [react()]
}
});