platform/services/rekoni/esbuild.js

12 lines
287 B
JavaScript
Raw Normal View History

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']
})