You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, there is no way to do perform conditional compilation based on the --target passed to wasm-pack.
It would be great if wasm-pack would pass it on via --cfg to Rust (should be easy enough to pass it in RUSTFLAGS), so that users could check this target in their code as any other conditional compilation attribute.
💡 Feature description
Currently, there is no way to do perform conditional compilation based on the
--target
passed to wasm-pack.It would be great if
wasm-pack
would pass it on via--cfg
to Rust (should be easy enough to pass it inRUSTFLAGS
), so that users could check this target in their code as any other conditional compilation attribute.💻 Basic example
The text was updated successfully, but these errors were encountered: