-
-
Notifications
You must be signed in to change notification settings - Fork 589
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
Fix the rust crypto import in esm environments. #4445
Conversation
Requested review from crypto too in case they have any input (although I suspect it's mostly a js-level issue) |
I've just updated it to use the full path with the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me.
@saul-jb please could you add a sign-off to your PR, per https://github.com/element-hq/element-web/blob/develop/CONTRIBUTING.md#sign-off
(Also: many thanks for doing battle with typescript, babel, jest and nodejs to fix this!) |
Rust crypto is broken in ESM environments like nodejs and webpack, this PR simply uses babel to rewrite the import to fix it.
Fixes #4392
See also:
Signed-off-by: Saul Boyd [email protected]