Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(swc/wasm): initial plugin support interface #4123

Merged
merged 3 commits into from
Mar 23, 2022

Conversation

kwonoj
Copy link
Member

@kwonoj kwonoj commented Mar 22, 2022

Description:

This is the initial groundwork for #3934. Mainly, PR attempts to introduce interface to transformSync in wasm to accept another param for the plugin's module bytes.

I'm not a huge fan of current approach, honestly. But also wasm-* target is pretty limited to access external system resources - for example, @swc/wasm cannot access filesystem also can't easily use remote-ish interfaces since it implies node.js target.

For now, I'll focus for the primary goal to enable end-to-end workflow to make plugin work in the wasm target. Once it's done, I can come up with proposal for consolidating all interface stablization.

Related issue (if exists):

@kwonoj kwonoj force-pushed the feat-wasm-plugin-byte-load branch 2 times, most recently from d0260ca to 5eebd36 Compare March 22, 2022 20:09
@kwonoj kwonoj force-pushed the feat-wasm-plugin-byte-load branch from 5eebd36 to 1f0c245 Compare March 22, 2022 20:26
Copy link
Member

@kdy1 kdy1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!


swc-bump:

  • swc
  • swc_cli
  • swc_plugin_runner

@kdy1 kdy1 added this to the v1.2.161 milestone Mar 23, 2022
@kdy1 kdy1 merged commit 50f7f46 into swc-project:main Mar 23, 2022
@kwonoj kwonoj deleted the feat-wasm-plugin-byte-load branch March 28, 2022 21:08
@swc-project swc-project locked as resolved and limited conversation to collaborators Oct 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants