Skip to content

Commit

Permalink
fix: correct package naming in "browser" fields (#625)
Browse files Browse the repository at this point in the history
Webpack 5 makes browser polyfills explicit. Webpack detects `@aws-sdk/hash-node` as something that includes node features to potentially pollfill while using `@aws-crypto/sha256-universal`. This can be resolved via a webpack config, but better to handle it here.
  • Loading branch information
Marcel-G authored May 11, 2023
1 parent 2480e49 commit 24d8c2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/sha256-universal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"main": "./build/index.js",
"types": "./build/index.d.ts",
"browser": {
"@aws/hash-node": false,
"@aws-sdk/hash-node": false,
"crypto": false
}
}

0 comments on commit 24d8c2b

Please sign in to comment.