sigit.io/vite.config.ts

20 lines
431 B
TypeScript
Raw Normal View History

2024-02-27 14:03:15 +00:00
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
2024-05-31 07:44:14 +00:00
import tsconfigPaths from 'vite-tsconfig-paths'
2024-02-27 14:03:15 +00:00
export default defineConfig({
2024-05-31 07:44:14 +00:00
plugins: [react(), tsconfigPaths()],
build: {
2024-08-08 09:39:29 +00:00
target: 'ES2022',
rollupOptions: {
output: {
manualChunks(id) {
if (id.includes('pdfjs-dist/build/pdf.worker.mjs')) {
return 'pdf.worker'
}
}
}
}
2024-05-31 07:44:14 +00:00
}
2024-02-27 14:03:15 +00:00
})