I was confused about where/how SDL gets recompiled for WASM, but it looks like Emscripten specifically has built-in support for SDL and a handful of other libraries. That's cool.
Other C dependencies could probably be managed with vcpkg.
Other C dependencies could probably be managed with vcpkg.
Here's where it's built
https://github.com/emscripten-core/emscripten/blob/main/tool...
So there's quite a size penalty to using SDL 2 rather than SDL 1.2, but the reimplemented SDL[_mixer] 1.2 is incomplete and differs from official.