feat: better cyclic.sh script compatibility

This commit is contained in:
TresAbhi committed 2023-06-11 18:28:25 +00:00
1 parent 4e49d22c4c
commit 3330dce264
13 files changed
+72 -164

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
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',
},
});