[Feature] : build and link shared wasm modules
experimental.wasm, is currently statically linked, it takes away one of the coolest vlc features: being able to, during runtime, only load the modules (depending on the codec, file format and container, vlc feature etc...) you need.
The current "link chain" looks like this:
libvlc.a => vlc-modules.bc => build/modules/.libs/* => contrib/lib/* => libvlccore.a => libcompat.a => experimental.wasm
vlc-modules, being a list of entries to the compiled modules.
emscripten does not support pthreads + shared libraries. The workaround would mean to patch the javascript loader so that it can load SIDE_MODULES in a pthread setup.
Sources: