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:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user