Eugene
d5e0769692
Some checks failed
Open PR on Staging / audit_and_check (pull_request) Failing after 32s
20 lines
431 B
TypeScript
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'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
})
|