Skip to content

Add an option to --keep-debug #1351

@connor4312

Description

@connor4312

💡 Feature description

With wasm-bindgen/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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions