/// import { defineConfig } from 'vite'; import react from '@vitejs/plugin-react'; export default defineConfig(() => ({ root: __dirname, cacheDir: '../../node_modules/.vite/apps/frontend', server: { port: 4200, host: 'localhost', }, preview: { port: 4300, host: 'localhost', }, plugins: [react()], // Uncomment this if you are using workers. // worker: { // plugins: [ nxViteTsPaths() ], // }, build: { outDir: './dist', emptyOutDir: true, reportCompressedSize: true, commonjsOptions: { transformMixedEsModules: true, }, }, }));