From: Chris Duncan Date: Sun, 29 Mar 2026 07:20:39 +0000 (-0700) Subject: Pin build targets for compatibility with systems missing built-in base64 support. X-Git-Tag: v5.1.11~1 X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=fe8f100938c5f5bd12732d88d1e877d4cb1a8082;p=nano-pow.git Pin build targets for compatibility with systems missing built-in base64 support. --- diff --git a/esbuild.mjs b/esbuild.mjs index b58fb40..a0ff603 100644 --- a/esbuild.mjs +++ b/esbuild.mjs @@ -18,7 +18,7 @@ await build({ format: 'esm', legalComments: 'inline', outdir: 'dist', - target: 'esnext', + target: 'es2022', dropLabels: process.env.NODE_ENV === 'development' ? [] : ['LOG'], plugins: [ glsl({ @@ -39,5 +39,5 @@ await build({ legalComments: 'inline', outdir: 'dist/bin', packages: 'external', - target: 'esnext' + target: 'node22' }) diff --git a/tsconfig.json b/tsconfig.json index e2c5fc6..0d09b8b 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,7 @@ { "compilerOptions": { - "target": "ESNext", - "module": "ESNext", + "target": "es2022", + "module": "es2022", "moduleResolution": "Bundler", "declaration": true, "emitDeclarationOnly": true,