Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to libsodium #77

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Switch to libsodium #77

wants to merge 1 commit into from

Conversation

xt0rted
Copy link
Owner

@xt0rted xt0rted commented Apr 14, 2022

This moves us over to libsodium now that tweetsodium is unmaintained and deprecated in favor of this library.

Due to an issue with webpack/ncc bundling a cjs library to esm doesn't work. Running the bundled output results in the following error:

ReferenceError: __dirname is not defined

Replacing __dirname in the bundled output with process.cwd() gets things working. Ideally this would be fixed in webpack/ncc, but libsodium packaging an esm build would also work. So until one of those things happens this can't be merged.

ref: jedisct1/libsodium.js#263
ref: vercel/ncc#749

@xt0rted xt0rted added the javascript Pull requests that update Javascript code label Apr 14, 2022
@xt0rted xt0rted force-pushed the libsodium-migration branch from c8442b9 to c9dd926 Compare September 26, 2022 03:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
javascript Pull requests that update Javascript code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant