Official Vite adapter for Payload.
npm install @payloadcms/bundler-vite
import { buildConfig } from 'payload/config'
import { viteBundler } from '@payloadcms/bundler-vite'
export default buildConfig({
bundler: viteBundler(),
// ...rest of config
})
More detailed usage can be found in the Payload Docs.