An example of this is Microsoft Flight Simulator. Packages such as aircraft are distributed/compiled as WASM modules and run (as I understand it) in a sandboxed environment within the simulator.
Do you have any additional details/links on how this works?
https://docs.flightsimulator.com/html/Programming_Tools/WASM...