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

chore: replace node crypto with browserify module #250

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cavacado
Copy link
Contributor

@cavacado cavacado commented Mar 23, 2023

Due to webpack v5 not including all polyfills by default, downstream websites/libraries consuming @govtechsg/open-attestation would lead to build errors if one uses create-react-app to build and construct their site.

This is highlighted in this issue:
#239

This chore replaces the current way we are using the randomBytes function from node crypto and makes it isomorphic via the browserify module.

In the first place is this something the lib should be concerned about? in the issue above, i told the guy to handle the polyfills at the application level.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant