web: add mock wasm-socket for building on non-wasm

This commit is contained in:
2025-04-15 16:09:04 -07:00
parent 75e9232095
commit 33edd22f8f
2 changed files with 62 additions and 5 deletions

View File

@@ -37,8 +37,9 @@ letterbox-shared = { version = "0.14.0", path = "../shared", registry = "xinu" }
letterbox-notmuch = { version = "0.14.0", path = "../notmuch", registry = "xinu" }
seed_hooks = { version = "0.4.0", registry = "xinu" }
strum_macros = "0.27.1"
wasm-sockets = "1.0.0"
gloo-console = "0.3.0"
[target.'cfg(target_arch = "wasm32")'.dependencies]
wasm-sockets = "1.0.0"
[package.metadata.wasm-pack.profile.release]
wasm-opt = ['-Os']