dfinity / node-motoko

Compile and run Motoko smart contracts in Node.js or the browser.
Apache License 2.0
15 stars 4 forks source link

Possibility of including the candid wasm binary #95

Open chenyan-dfinity opened 2 months ago

chenyan-dfinity commented 2 months ago

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?