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