mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-26 19:21:39 +00:00
Fix: build nuxt to commonjs target
This commit is contained in:
parent
228b5203a8
commit
03ed99d316
11 changed files with 14359 additions and 567 deletions
17
client/esbuild.js
Normal file
17
client/esbuild.js
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
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)
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue