rage-framework/server/build.js

11 lines
232 B
JavaScript
Raw Normal View History

2024-06-10 00:53:42 +00:00
import { build } from 'esbuild'
build({
entryPoints: ['./src/index.ts'],
2024-06-10 14:28:22 +00:00
bundle: true,
format: 'cjs',
2024-06-10 00:53:42 +00:00
platform: 'node',
target: 'node10.4',
outdir: './dist',
}).then(r => console.log('Successfully build.'))