1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-30 04:23:11 +03:00

Depenencies: Updated NPM packages

Avoided updating markdown-it package to 14 for now since it would cause
bundle size to inflate. Don't think ESBuild is properly tree shaking
"entities" sub package which inflates size.
This commit is contained in:
Dan Brown
2023-12-09 10:49:28 +00:00
parent 33374524bf
commit 11955e270c
3 changed files with 117 additions and 98 deletions

View File

@ -25,11 +25,11 @@ esbuild.build({
entryPoints,
outdir,
sourcemap: true,
target: 'es2020',
target: 'es2021',
mainFields: ['module', 'main'],
format: 'esm',
minify: isProd,
logLevel: "info",
logLevel: 'info',
}).then(result => {
fs.writeFileSync('esbuild-meta.json', JSON.stringify(result.metafile));
}).catch(() => process.exit(1));
}).catch(() => process.exit(1));