fix: force onnxruntime-web@1.18.0 via resolutions to eliminate nested 1.24.3

vad-web's own dependency was resolved to ort@1.24.3 (nested in its
node_modules), which only has threaded WASM requiring a .mjs dynamic
import that Vite fails to serve correctly. Pin ort to 1.18.0 via yarn
resolutions so all packages share the same copy with ort-wasm-simd.wasm
(non-threaded SIMD). Also remove the now-unnecessary COOP/COEP headers.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
mk
2026-03-23 23:48:44 -03:00
parent f2988cd689
commit 4a58277090
3 changed files with 1 additions and 33 deletions

View File

@@ -9643,13 +9643,6 @@ __metadata:
languageName: node
linkType: hard
"flatbuffers@npm:^25.1.24":
version: 25.9.23
resolution: "flatbuffers@npm:25.9.23"
checksum: 10c0/957c4ae2a02be1703c98b36b4dc8ceb81613cf8e2333026afc95a7b68b088bed5458056dc29d0ab7ce8bc403b8c003732b0968d24aba46f5e7c8f71789a6bd9e
languageName: node
linkType: hard
"flatted@npm:^3.2.9":
version: 3.3.1
resolution: "flatted@npm:3.3.1"
@@ -12061,13 +12054,6 @@ __metadata:
languageName: node
linkType: hard
"onnxruntime-common@npm:1.24.3":
version: 1.24.3
resolution: "onnxruntime-common@npm:1.24.3"
checksum: 10c0/3160a08a8addf7b1c8f2ff0c12c126c84847d5b36f8c047cf05560d05faf7605fe4c3366c725cfbd305d4399d0930c632a22bd6a600488ac2c6f9ee3e2aebe25
languageName: node
linkType: hard
"onnxruntime-web@npm:1.18.0":
version: 1.18.0
resolution: "onnxruntime-web@npm:1.18.0"
@@ -12082,20 +12068,6 @@ __metadata:
languageName: node
linkType: hard
"onnxruntime-web@npm:^1.17.0":
version: 1.24.3
resolution: "onnxruntime-web@npm:1.24.3"
dependencies:
flatbuffers: "npm:^25.1.24"
guid-typescript: "npm:^1.0.9"
long: "npm:^5.2.3"
onnxruntime-common: "npm:1.24.3"
platform: "npm:^1.3.6"
protobufjs: "npm:^7.2.4"
checksum: 10c0/7975ad03fed7017a84b64e8038187dc52ec383628fd4ac380a9dee628c1aee7959f8398c0ffe3e503b4565d381d9f8ef8863f942386f56ff5ee0915e38f828c3
languageName: node
linkType: hard
"optionator@npm:^0.9.3":
version: 0.9.4
resolution: "optionator@npm:0.9.4"