mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-16 14:21:41 +00:00
17 lines
443 B
JavaScript
17 lines
443 B
JavaScript
const { build } = require('esbuild')
|
|
|
|
build({
|
|
entryPoints: ['.output/server/index.mjs'],
|
|
outfile: '.output/server/index.js',
|
|
bundle: true,
|
|
platform: 'node',
|
|
format: 'cjs',
|
|
ignoreAnnotations: true,
|
|
sourcemap: true,
|
|
inject: ['./esm-shims.js']
|
|
}).then(() => {
|
|
console.info('✔ Server compiled to commonjs target at .output/server/index.js')
|
|
}).catch(() => {
|
|
console.error('✘ Server failed to compile')
|
|
process.exit(1)
|
|
})
|