plugins icon indicating copy to clipboard operation
plugins copied to clipboard

Wasm plugin to support latest ESM Integration & Source Phase Imports

Open guybedford opened this issue 1 year ago • 6 comments

  • 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.

guybedford avatar Jun 16 '24 08:06 guybedford

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.

stale[bot] avatar Apr 27 '25 02:04 stale[bot]

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.

stale[bot] avatar Apr 28 '25 04:04 stale[bot]

@guybedford Do you think you'll have time to work on this or do reviews?

brendandahl avatar Jul 09 '25 21:07 brendandahl

@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.

guybedford avatar Jul 10 '25 03:07 guybedford

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.

brendandahl avatar Jul 22 '25 20:07 brendandahl

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.

guybedford avatar Jul 28 '25 01:07 guybedford