From: Chris Duncan Date: Thu, 17 Jul 2025 13:10:19 +0000 (-0700) Subject: Export esbuild options common to all build targets. X-Git-Tag: v0.10.5~56^2~22 X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=3ced0a3e9efcbd3a7e1c0340622a453c603709ea;p=libnemo.git Export esbuild options common to all build targets. --- diff --git a/esbuild-common.d.ts b/esbuild-common.d.ts new file mode 100644 index 0000000..2b882c4 --- /dev/null +++ b/esbuild-common.d.ts @@ -0,0 +1,14 @@ +//! SPDX-FileCopyrightText: 2025 Chris Duncan +//! SPDX-License-Identifier: GPL-3.0-or-later + +export const options: import("esbuild").BuildOptions = { + bundle: true, + entryPoints: [ + { in: './src/main.ts', out: 'main.min' } + ], + inject: ['./buffer.mjs'], + format: 'esm', + legalComments: 'inline', + outdir: 'dist', + target: 'esnext' +}