[js/web] remove "browser" field in package.json (#20021)

### Description

Field "browser" is deprecated in favor of "exports". Removes the unused
field.

Some bundler may read from "browser" and generate errors. Removing this
field should let bundler to look up "exports". Fixes #19915
This commit is contained in:
Yulong Wang 2024-03-26 13:57:11 -07:00 committed by GitHub
parent 0313dd1f65
commit 050085a7fb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,6 +1,5 @@
{
"license": "MIT",
"browser": "dist/ort-web.min.js",
"unpkg": "dist/ort.min.js",
"name": "onnxruntime-web",
"repository": {