fedimint-web-sdk
fedimint-web-sdk copied to clipboard
Generate WASM bindings in Nix
Instead of checking in the wasm-web and wasm-bundler packages we could generate them as nix outputs and e.g. symlink them into the repo when entering the dev shell.
> nix build github:fedimint/fedimint#wasm32-unknown.release.wasmBundle
# ...
> ls result/share/fedimint-client-wasm/
fedimint_client_wasm_bg.js fedimint_client_wasm_bg.wasm.d.ts fedimint_client_wasm.js
fedimint_client_wasm_bg.wasm fedimint_client_wasm.d.ts package.json
Implemented per https://github.com/fedimint/fedimint-web-sdk/pull/163. So much better.