What is the expected behavior?
Loader can emit wasm
What is motivation or use case for adding/changing the behavior?
WebAssembly is just a compilation target and can be abstracted away from the user.
How should this be implemented in your opinion?
emit since wasm has a magic header and can reliably be detected.
In the future we could even concat all wasm modules together or treeshake them. Webpack will basically act as a linker.
Are you willing to work on this yourself?