Files
screeps-scripts/esbuild.config.mjs
2025-07-06 14:22:46 -03:00

16 lines
371 B
JavaScript

import { build } from 'esbuild';
build({
entryPoints: ['src/main.ts'],
bundle: true,
target: 'es6', // Screeps supports ES2018 well
platform: 'node',
tsconfig: 'tsconfig.json',
format: 'cjs',
outdir: 'dist',
sourcemap: true,
logLevel: 'info',
minify: false,
keepNames: true, // optional: keeps function/class names
}).catch(() => process.exit(1));