import { defineConfig } from 'vite' import react from '@vitejs/plugin-react' import tsconfigPaths from 'vite-tsconfig-paths' export default defineConfig({ plugins: [react(), tsconfigPaths()], build: { target: 'ES2022', rollupOptions: { output: { manualChunks(id) { if (id.includes('pdfjs-dist/build/pdf.worker.mjs')) { return 'pdf.worker' } } } } } })