You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you can't host the files for your source map, you can put their contents in the sourcesContent field of your source map JSON file https://tc39.es/source-map/#sourcescontent
When emscripten runs wasm-emscripten-finalize on a source map file that has that field set
Thanks @mkl-ableton for pinging on this.
This applies to all of the Binaryen tools (including e.g. wasm-opt) and is because Binaryen regenerates the source map after it does its transformations (because of course transformations change the binary and therefore the mappings). But some information can just be passed through, including the list of source files in sources their content in sourcesContent (basically everything other than names and mappings). Currently the symbol and filename info just hangs off the Module object and gets read from and written into the source map during wasm binary reading and writing. It seems like it would be straightforward to add another field or two that passes directly through to the output. If the size of the sources gets to be too unwieldy, we could maybe represent them as indices or file offsets or something and pass them a little more directly/incrementally from the input to the output rather than keeping them attached to the Module in memory in between. But I'm not sure whether that would really be an issue or not.
If you can't host the files for your source map, you can put their contents in the
sourcesContent
field of your source map JSON file https://tc39.es/source-map/#sourcescontentWhen emscripten runs wasm-emscripten-finalize on a source map file that has that field set
https://github.com/emscripten-core/emscripten/blob/cf0ec7a4426203d76f958216d14ad9f4513d8481/tools/emscripten.py#L488-L491
wasm-emscripten-finalize removes it.
emscripten-core/emscripten#22190
The text was updated successfully, but these errors were encountered: