mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-26 19:52:38 +00:00
### Description
Allow importing the `.mjs` and `.wasm` files.
when using Vite, this enables web app to consume ORT-web for simplify
the setup:
```js
import * as ort from 'onnxruntime-web';
import wasmFileUrl from 'onnxruntime-web/.wasm?url';
ort.env.wasm.wasmPaths = { wasm: wasmFileUrl };
|
||
|---|---|---|
| .. | ||
| testcases | ||
| main.js | ||
| README.md | ||
| test.js | ||
| utils.js | ||
This folder includes test data, scripts and source code that used to test the export functionality of onnxruntime-web package.