Skip to content

Commit

Permalink
make package.json more rebost (microsoft#16366)
Browse files Browse the repository at this point in the history
"default" should be last element for exports.
This fixes "Module not found: Error: Default condition should be last
one" when importing the onnxruntime-web package in some conditions.
  • Loading branch information
guschmue authored Jun 15, 2023
1 parent 9169789 commit 80cfb7b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,17 +69,17 @@
"exports": {
".": {
"node": {
"default": "./dist/ort-web.node.js",
"types": "./types.d.ts"
"types": "./types.d.ts",
"default": "./dist/ort-web.node.js"
},
"default": {
"default": "./dist/ort.min.js",
"types": "./types.d.ts"
"types": "./types.d.ts",
"default": "./dist/ort.min.js"
}
},
"./webgpu": {
"default": "./dist/ort.webgpu.min.js",
"types": "./types.d.ts"
"types": "./types.d.ts",
"default": "./dist/ort.webgpu.min.js"
}
},
"types": "./types.d.ts",
Expand Down

0 comments on commit 80cfb7b

Please sign in to comment.