mirror of
https://github.com/DRYTRIX/TimeTracker.git
synced 2026-05-21 22:00:07 -05:00
d52266370f
Run desktop packaging workflows on Node 24 and load Vite through an ESM config so macOS, Linux, and Windows builds use a runtime compatible with Vite 7.
23 lines
534 B
JavaScript
23 lines
534 B
JavaScript
import path from 'node:path';
|
|
import { fileURLToPath } from 'node:url';
|
|
import { defineConfig } from 'vite';
|
|
import react from '@vitejs/plugin-react';
|
|
|
|
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
|
|
export default defineConfig({
|
|
root: path.resolve(__dirname, 'src/renderer-react'),
|
|
base: './',
|
|
plugins: [react()],
|
|
build: {
|
|
outDir: path.resolve(__dirname, 'dist-renderer'),
|
|
emptyOutDir: true,
|
|
sourcemap: true,
|
|
},
|
|
server: {
|
|
host: '127.0.0.1',
|
|
port: 5173,
|
|
strictPort: true,
|
|
},
|
|
});
|