subpath feature

This commit is contained in:
Lucas Winther committed 2026-07-10 10:13:37 +02:00
1 parent 2d668b3fb8
commit 076efc2101
11 files changed
+32 -31

No files matched your search

+1 -1
View File
@@ -31,7 +31,7 @@ import {
// them at /ort/* (src/index.ts; copied into dist/ort by scripts/build.ts)
// and the service worker runtime-caches them cache-first (src/pwa/sw.ts).
if (env.backends.onnx.wasm) {
env.backends.onnx.wasm.wasmPaths = "/ort/";
env.backends.onnx.wasm.wasmPaths = "ort/";
}
// `lib: ["DOM"]` types `self` as Window; give it the worker-scope shape we use.