sigit.io/vite.config.ts
Eugene d5e0769692
Some checks failed
Open PR on Staging / audit_and_check (pull_request) Failing after 32s
fix: pdfjs import
2024-08-08 12:39:29 +03:00

20 lines
431 B
TypeScript

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'
}
}
}
}
}
})