PostHog's current source map resolution mechanism, which relies on chunk IDs in JavaScript files, is incompatible with WebAssembly (WASM) binaries. This prevents proper error tracking and debugging for WASM applications.
### Feature request ## Is your feature request related to a problem? PostHog's source map resolution requires chunk IDs injected into served JavaScript files (//# chunkId=...). The JS SDK reads these comments at error time to match frames to uploaded source maps. This doesn't work for WebAssembly. WASM binaries are not text files — there's nowhere to inject a chunk ID comment, and the SDK can't read one from a .wasm file. As a result, WASM source maps cannot be resolved even when correctly generated and uploaded. ## Describe the solution you'd like Native support for WASM sourcemaps (similar to dsym, hermes, proguard support). ## Describe alternatives you've considered - Allow passing a chunk id when reporting errors to PostHog - this way we could upload WASM sourcemaps in the v3 sourcemap format and explicitly send the chunk id required for you to do the matching (e.g. hash of the wasm file) - Enable matching on filenames only - this would require release-specific asset names (