You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The feature requires Node.js integration to support WebAssembly source phase imports. TLDR, if a SourceTextModule imports a source-phase WebAssembly module, create a module source object with v8::WasmModuleObject::Compile and return the WebAssembly.Module object from v8::Module::ResolveSourceCallback, and v8::HostImportModuleWithPhaseDynamicallyCallback.
There's not much reason to care about ESM instance imports without also having worker_threads support instantiating workers from a ModuleSource - which is worth doing, but is probably a bigger topic than wasm source phase imports (which are immediately useful).
Activity
guybedford commentedon Nov 28, 2024
This should ideally be implemented along with the ESM instance imports and should likely also go with unflagging
--experimental-wasm-modules.bakkot commentedon Dec 1, 2024
There's not much reason to care about ESM instance imports without also having worker_threads support instantiating workers from a ModuleSource - which is worth doing, but is probably a bigger topic than wasm source phase imports (which are immediately useful).
sbc100 commentedon Dec 3, 2024
Emscripten would love to start using this feature as soon as its available: emscripten-core/emscripten#23047
guybedford commentedon Feb 28, 2025
This landed in #56919.