platform/services/rekoni/esbuild.js
Andrey Sobolev ddecae80dd
Move services to public (#6156)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
2024-07-28 14:55:43 +07:00

12 lines
287 B
JavaScript

const esbuild = require('esbuild')
void esbuild.build({
entryPoints: ['src/index.ts'],
bundle: true,
minify: true,
keepNames: true,
loader: { ".node": "file" },
platform: 'node',
outfile: 'bundle/bundle.js',
external: ['canvas', 'sharp', 'pdfjs-dist']
})