Skip to content

add browser field to avoid shimming crypto-browserify#364

Merged
evanvosberg merged 1 commit into
brix:developfrom
hkjpotato:develop
Jul 22, 2021
Merged

add browser field to avoid shimming crypto-browserify#364
evanvosberg merged 1 commit into
brix:developfrom
hkjpotato:develop

Conversation

@hkjpotato

@hkjpotato hkjpotato commented Jul 6, 2021

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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

Hinaser commented Jul 7, 2021

Copy link
Copy Markdown

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.

4 participants