chore: fix payload bundle script (#13022)

This fixes the payload bundle script. While not run by default, it's
useful for checking the payload bundle size by manually running `cd
packages/payload && node bundle.js`.
This commit is contained in:
Alessio Gravili
2025-07-03 04:37:44 -07:00
committed by GitHub
parent fafaa04e1a
commit e6b664284f

View File

@@ -7,11 +7,11 @@ const dirname = path.dirname(filename)
async function build() {
const resultIndex = await esbuild.build({
entryPoints: ['src/exports/index.ts'],
entryPoints: ['src/index.ts'],
bundle: true,
platform: 'node',
format: 'esm',
outfile: 'dist/exports/index.js',
outfile: 'dist/index.js',
splitting: false,
external: [
'lodash',