import { fileURLToPath, URL } from 'node:url'; import { defineConfig } from 'vite'; import react from '@vitejs/plugin-react'; export default defineConfig({ plugins: [react()], resolve: { alias: { '@lunar/core': fileURLToPath(new URL('../web/packages/core/dist/index.js', import.meta.url)), }, }, server: { port: 4260, strictPort: true, }, preview: { port: 4260, strictPort: true, }, build: { target: 'es2022', }, });