Skip to content

wasm-bindgen/wasm-pack is not supported? #26

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
xxshady opened this issue Aug 27, 2024 · 3 comments
Closed

wasm-bindgen/wasm-pack is not supported? #26

xxshady opened this issue Aug 27, 2024 · 3 comments
Labels
discussion Questions, help requests, discussions

Comments

@xxshady
Copy link

xxshady commented Aug 27, 2024

rustwasm/wasm-bindgen#3698 (comment)

@xxshady xxshady changed the title wasm_bindgen is not supported? wasm_bindgen/wasm-pack is not supported? Aug 27, 2024
@xxshady
Copy link
Author

xxshady commented Aug 27, 2024

perhaps thats why example in this repository does not use wasm_bindgen?

@mtolmacs
Copy link
Owner

perhaps thats why example in this repository does not use wasm_bindgen?

No, that's just a personal preference because I use that example for debugging and wasm-bindgen creates a ton of extra code which makes it hard to debug the wasm bytecode <-> sourcemap mapping.

As the answer to your question in the wasm-bindgen repo indicates you have to have DWARF debug symbols present in the .wasm file you are processing with wasm2map. Otherwise it has nothing to work with.

For wasm-pack you might want to try configuring the underlying wasm-bindgen lib to keep the DWARF info and see if it works for you.

@mtolmacs mtolmacs added question Further information is requested discussion Questions, help requests, discussions and removed question Further information is requested labels Aug 28, 2024
@xxshady
Copy link
Author

xxshady commented Aug 28, 2024

i see, thank you for the reply, for those who need it too: rustwasm/wasm-bindgen#3698 (comment)

@xxshady xxshady closed this as completed Aug 28, 2024
@xxshady xxshady changed the title wasm_bindgen/wasm-pack is not supported? wasm-bindgen/wasm-pack is not supported? Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion Questions, help requests, discussions
Projects
None yet
Development

No branches or pull requests

2 participants