mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-22 22:01:08 +00:00
[web] fix: Provide typings for exports (#16249)
### Description Adds typings to be compatible with `moduleResolution: bundler` ### Motivation and Context Fixes #16242
This commit is contained in:
parent
fe0cc8ce62
commit
dc1312cfb1
1 changed files with 12 additions and 3 deletions
|
|
@ -68,10 +68,19 @@
|
|||
"main": "dist/ort-web.node.js",
|
||||
"exports": {
|
||||
".": {
|
||||
"node": "./dist/ort-web.node.js",
|
||||
"default": "./dist/ort.min.js"
|
||||
"node": {
|
||||
"default": "./dist/ort-web.node.js",
|
||||
"types": "./types.d.ts"
|
||||
},
|
||||
"default": {
|
||||
"default": "./dist/ort.min.js",
|
||||
"types": "./types.d.ts"
|
||||
}
|
||||
},
|
||||
"./webgpu": "./dist/ort.webgpu.min.js"
|
||||
"./webgpu": {
|
||||
"default": "./dist/ort.webgpu.min.js",
|
||||
"types": "./types.d.ts"
|
||||
}
|
||||
},
|
||||
"types": "./types.d.ts",
|
||||
"description": "A Javascript library for running ONNX models on browsers"
|
||||
|
|
|
|||
Loading…
Reference in a new issue