This proposal is at phase 3 so browser should be supporting without a flag soon. For folks that use bundlers that bundler should also be able to lower this away.
It seems like we should want a new setting for enable this, which should allow us to elide a lot of the wasm file loading code.
The source phase imports proposal should allow us to simplify the emscripten-generated JS code significantly: https://github.com/tc39/proposal-source-phase-imports.
This proposal is at phase 3 so browser should be supporting without a flag soon. For folks that use bundlers that bundler should also be able to lower this away.
It seems like we should want a new setting for enable this, which should allow us to elide a lot of the wasm file loading code.
Chromium tracking issue: https://issues.chromium.org/issues/42204365