Add an option to --keep-debug (original) (raw)
💡 Feature description
With rustwasm/wasm-bindgen#2389, DWARF symbols work in wasm-bindgen when --keep-debug
is passed. However, this cannot be passed from the wasm-pack
interface (as far as I know)
💻 Basic example
Currently one manually has to do
cargo build --target wasm32-unknown-unknown && wasm-bindgen --keep-debug --web --out-dir pkg ./target/wasm32-unknown-unknown/
It would be better to add some wasm-pack build --keep-debug
, or even make that the default for dev builds.