Configures ESBuild
This commit is contained in:
12
esbuild.config.mjs
Normal file
12
esbuild.config.mjs
Normal 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));
|
||||
Reference in New Issue
Block a user