Skip to content
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

wasm-emscripten-finalize doesn't preserve sourcesContent #6805

Open
verhovsky opened this issue Aug 2, 2024 · 0 comments
Open

wasm-emscripten-finalize doesn't preserve sourcesContent #6805

verhovsky opened this issue Aug 2, 2024 · 0 comments

Comments

@verhovsky
Copy link

verhovsky commented Aug 2, 2024

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

https://github.com/emscripten-core/emscripten/blob/cf0ec7a4426203d76f958216d14ad9f4513d8481/tools/emscripten.py#L488-L491

wasm-emscripten-finalize removes it.

emscripten-core/emscripten#22190

@verhovsky verhovsky changed the title wasm-emscripten-finalize doesn't preserve source map's sourcesContent wasm-emscripten-finalize doesn't preserve sourcesContent Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant