[js] fix js/web bundle (#14434)

### Description
make sure "crypto" is not processed by webpack for browser configuration
This commit is contained in:
Yulong Wang 2023-01-26 14:43:09 -08:00 committed by GitHub
parent eacd829d23
commit de11527d76
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -80,6 +80,7 @@ function buildConfig({ filename, format, target, mode, devtool, build_defs }) {
"util": false,
},
fallback: {
"crypto": false,
"fs": false,
"path": false,
"util": false,