esbuild for prod

This commit is contained in:
Caileb 2025-05-29 15:48:20 -05:00
parent 7e7f6e3b99
commit 1cb1c1a333
4 changed files with 27 additions and 9 deletions

12
esbuild.config.js Normal file
View file

@ -0,0 +1,12 @@
import { build } from 'esbuild';
build({
entryPoints: ['index.js'],
bundle: true,
platform: 'node',
target: 'node18',
outfile: 'dist/index.js',
minify: true,
legalComments: 'none',
drop: ['console', 'debugger'],
}).catch(() => process.exit(1));