wasm-bindgen icon indicating copy to clipboard operation
wasm-bindgen copied to clipboard

Use the newly fixed debugging information

Open daxpedda opened this issue 2 years ago • 6 comments

Just dropping some random thoughts before I forget them.

  • Using it in wasm-bindgen-test instead of console_error_panic_hook (don't replace it entirely because we still need the panic message).
  • Add a new documentation page noting how to actually deploy it.
    • Generate sourcemaps, e.g. using wasm2map.
    • Strip DWARF in case of sourcemaps.
    • Notes on browser support and how to serve source files if not bundled.
  • Maybe think about adding an option to generate source maps or split debug info directly in wasm-bindgen, but I would argue this would be more the domain of wasm-pack and co.

daxpedda avatar Nov 10 '23 22:11 daxpedda

A page in the documentation about this information would be very helpful

ranile avatar Nov 18 '23 11:11 ranile