wasm-bindgen
wasm-bindgen copied to clipboard
Use the newly fixed debugging information
Just dropping some random thoughts before I forget them.
- Using it in
wasm-bindgen-testinstead ofconsole_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.
- Generate sourcemaps, e.g. using
- 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 ofwasm-packand co.
A page in the documentation about this information would be very helpful