node-motoko icon indicating copy to clipboard operation
node-motoko copied to clipboard

Possibility of including the candid wasm binary

Open chenyan-dfinity opened this issue 1 year ago • 0 comments

A few projects are compiling the Rust candid_parser library as Wasm module, and run them in browser, e.g., https://gitlab.com/dfinity-lab/legalregistry/public-dashboards-ui/-/blob/dev/rs/didc/src/lib.rs?ref_type=heads.

I am wondering if it makes sense to include the Wasm module here? The main concern is code size. Does npm have some kind of feature flags that can selectively include certain files?

chenyan-dfinity avatar Jul 22 '24 17:07 chenyan-dfinity