]> git.codecow.com Git - nano-pow.git/commitdiff
Pin build targets for compatibility with systems missing built-in base64 support.
authorChris Duncan <chris@zoso.dev>
Sun, 29 Mar 2026 07:20:39 +0000 (00:20 -0700)
committerChris Duncan <chris@zoso.dev>
Sun, 29 Mar 2026 07:20:39 +0000 (00:20 -0700)
esbuild.mjs
tsconfig.json

index b58fb407ac784878a1dba7989ebf435085127f3d..a0ff603713c84a990f6d0b4c399203920534a399 100644 (file)
@@ -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'
 })
index e2c5fc6948a2b4a73b58b805427bf3ab81b40a7f..0d09b8b13c82e38d8ad98eb09cef059c8b82d60c 100644 (file)
@@ -1,7 +1,7 @@
 {
        "compilerOptions": {
-               "target": "ESNext",
-               "module": "ESNext",
+               "target": "es2022",
+               "module": "es2022",
                "moduleResolution": "Bundler",
                "declaration": true,
                "emitDeclarationOnly": true,