]> git.codecow.com Git - libnemo.git/commit
Refactor vault for minification.
authorChris Duncan <chris@zoso.dev>
Thu, 4 Sep 2025 18:45:15 +0000 (11:45 -0700)
committerChris Duncan <chris@zoso.dev>
Thu, 4 Sep 2025 18:45:15 +0000 (11:45 -0700)
commitb02e50be82c28b12054e521e23d7e120883925be
tree15e2acdea91a38099912ac104fa882f76e63206d
parent2612c32a7312cb1f31ec13aca9c95feb6f73d1d6
Refactor vault for minification.
To support name mangling, the stringified Vault worker now redefines the names of its own imports based on each class's mangled name. In the same vein, convert functions and constants have been inlined where used in the Vault. Finally, the worker now dynamically imports NodeJS worker threads when instantiated so that it can be excluded from static imports and avoid mangling.
esbuild-prod.mjs
esbuild.mjs
src/lib/constants.ts
src/lib/crypto/bip39.ts
src/lib/crypto/bip44.ts
src/lib/crypto/wallet-aes-gcm.ts
src/lib/vault/index.ts
src/lib/vault/vault-worker.ts