From fe8f100938c5f5bd12732d88d1e877d4cb1a8082 Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Sun, 29 Mar 2026 00:20:39 -0700 Subject: [PATCH] Pin build targets for compatibility with systems missing built-in base64 support. --- esbuild.mjs | 4 ++-- tsconfig.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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, -- 2.47.3