Wasm plugin to support latest ESM Integration & Source Phase Imports
- Rollup Plugin Name: wasm
- Rollup Plugin Version:
Feature Use Case
The WebAssembly ESM Integration proposal recently reached phase 3 in the WebAssembly process. It would be great if Rollup's Wasm plugin could align with this latest proposal to unify the runtime and build-time behaviours for Wasm imports.
Feature Proposal
See https://github.com/WebAssembly/esm-integration.
I may be able to assist with review or some implementation work here.
Hey folks. This issue hasn't received any traction for 60 days, so we're going to close this for housekeeping. If this is still an ongoing issue, please do consider contributing a Pull Request to resolve it. Further discussion is always welcome even with the issue closed. If anything actionable is posted in the comments, we'll consider reopening it. ⓘ
Hey folks. This issue hasn't received any traction for 60 days, so we're going to close this for housekeeping. If this is still an ongoing issue, please do consider contributing a Pull Request to resolve it. Further discussion is always welcome even with the issue closed. If anything actionable is posted in the comments, we'll consider reopening it. ⓘ
@guybedford Do you think you'll have time to work on this or do reviews?
@brendandahl thanks for the ping, and yes I am hoping to. First step was https://github.com/nicolo-ribaudo/acorn-import-phases/pull/1 which gets the parser support to start.
Let me know if there's any particular area you want help with. FWIW, I also opened some PR's in the unwasm rollup plugin for using wasm-metadce with ESM integration. I imagine it would be very similar to integrate DCE into this plugin too.
This is awesome @brendandahl thanks for sharing. If it takes more than another week or two to integrate https://github.com/rollup/rollup/pull/6024 I might well post up my PR for the instancing work at least in the mean time here, and then would very much value seeing a similar integration here. There's also the Vite plugin here to follow - https://github.com/Menci/vite-plugin-wasm.