1
0
Fork 0
salty-dog/config/esbuild.mjs

22 lines
392 B
JavaScript
Raw Permalink Normal View History

2022-02-03 14:22:29 +00:00
import { build } from 'esbuild';
import { join } from 'path';
const root = process.cwd();
build({
bundle: true,
entryPoints: [
join(root, 'out/src/index.js'),
],
format: 'cjs',
keepNames: true,
outdir: 'out/bundle/',
outExtension: {
'.js': '.cjs',
},
platform: 'node',
}).catch((err) => {
console.error(err);
process.exit(1);
});