Configures ESBuild

This commit is contained in:
2025-07-05 17:48:19 -03:00
parent 0f9479f2c3
commit 3e9851a2c9
3 changed files with 15 additions and 33 deletions

12
esbuild.config.mjs Normal file
View File

@@ -0,0 +1,12 @@
import { build } from 'esbuild';
build({
entryPoints: ['src/main.ts'],
bundle: true,
target: 'es2018', // Screeps supports ES2018 well
platform: 'node',
format: 'cjs',
outdir: 'dist',
sourcemap: true,
logLevel: 'info',
}).catch(() => process.exit(1));