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

add browser field to avoid shimming crypto-browserify #364

Merged
merged 1 commit into from Jul 22, 2021

Conversation

hkjpotato
Copy link
Contributor

@hkjpotato hkjpotato commented Jul 6, 2021

based on spec https://github.com/defunctzombie/package-browser-field-spec

Adding this can help solve several issues related to webpack/nextjs build, as it avoids shimming the crypto-browserify when resolving crypto-js/core. Otherwise, user needs to manually update the resolving setting in their webpack/nextjs config.

related issues:
#354
#276
aws-amplify/amplify-js#7570

@hkjpotato
Copy link
Contributor Author

@evanvosberg can I get review on this tiny change? It is kind of blocking our usage of crypto-js now. Thank you.

@Hinaser
Copy link

Hinaser commented Jul 7, 2021

You can try jscrypto which solves various issues like you mentioned.

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

4 participants