The threaded ORT WASM requires ort-wasm-simd-threaded.mjs to be served alongside the .wasm files, and needs SharedArrayBuffer (COOP/COEP headers). Add the .mjs to the static copy targets, add the required headers to the Vite dev server, and set ort.env.wasm.numThreads=1 as a single-threaded fallback that avoids the SharedArrayBuffer requirement entirely. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
5.9 KiB
5.9 KiB