Tracking Issue for Reference Types (Webpack / webassemblyjs)
Reference types (+reference-types) allow passing JavaScript objects into WASM and back. This should improve the performance of the interactions between JS and WASM. All browsers other than Chrome support this already. Chrome will stabilize this in Chrome 96 on November 16th. We would then merge it one month later on December 16th.
Turns out that webpack (particularly its underlying library webassemblyjs) can't currently parse WASM files that contain reference types, so this is also blocked on that.
Chrome 96 has been released, but webassemblyjs still can't parse reference types. Here's the tracking issue: https://github.com/xtuc/webassemblyjs/issues/931