vite.config.ts
612 Bytes
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import { resolve } from 'path';
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
server: {
host: '127.0.0.1',
port: 10012,
strictPort: true,
open: true,
hmr: true,
},
esbuild: {
jsxFactory: 'h',
jsxFragment: 'Fragment',
},
resolve: {
alias: {
'@/hr': resolve(__dirname, 'packages/hr'),
'@/hro': resolve(__dirname, 'packages/hro'),
'@/utils': resolve(__dirname, 'utils'),
'@/services': resolve(__dirname, 'services'),
},
},
});