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