mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 10:47:04 +02:00
19 lines
309 B
JavaScript
19 lines
309 B
JavaScript
import { build } from 'esbuild';
|
|
|
|
build({
|
|
entryPoints: ['src/index.ts'],
|
|
outfile: 'dist/server.cjs',
|
|
|
|
platform: 'node',
|
|
|
|
bundle: true,
|
|
// minifying cases a few random errors; will investigate later
|
|
// minify: true,
|
|
sourcemap: true,
|
|
|
|
loader: {
|
|
'.node': 'copy',
|
|
'.ttf': 'file',
|
|
},
|
|
});
|