14 lines
353 B
JavaScript
14 lines
353 B
JavaScript
// Bundles the server into one file. Dependencies stay external and are installed in the image.
|
|
import { build } from 'esbuild';
|
|
|
|
await build({
|
|
entryPoints: ['server/main.ts'],
|
|
outfile: 'dist/server/main.js',
|
|
bundle: true,
|
|
platform: 'node',
|
|
format: 'esm',
|
|
target: 'node24',
|
|
packages: 'external',
|
|
sourcemap: true,
|
|
logLevel: 'info',
|
|
});
|