]> git.codecow.com Git - nano25519.git/commitdiff
Mark specific package as external to avoid import attempt in browser.
authorChris Duncan <chris@codecow.com>
Fri, 26 Jun 2026 20:55:36 +0000 (13:55 -0700)
committerChris Duncan <chris@codecow.com>
Fri, 26 Jun 2026 20:55:36 +0000 (13:55 -0700)
esbuild/config.mjs

index 958781cd45c96980bc0314f1c4a98947dbc5ecfc..e552886b7dbd6ef82e54bd226079bf3d41dd2f97 100644 (file)
@@ -14,7 +14,6 @@ const commonOptions = {
        format: 'esm',
        legalComments: 'inline',
        outdir: 'dist',
-       packages: 'external',
 }
 
 /**
@@ -42,5 +41,6 @@ export const nodeOptions = {
                'types/src/*',
        ],
        entryNames: '[name]',
+       external: ['node:worker_threads'],
        dropLabels: ['BROWSER'],
 }