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

SWC plugin transformer example #9826

Draft
wants to merge 6 commits into
base: v2
Choose a base branch
from
Draft

SWC plugin transformer example #9826

wants to merge 6 commits into from

Conversation

yamadapc
Copy link
Contributor

@yamadapc yamadapc commented Jul 1, 2024

This commit adds a parcel transformer that executes SWC.

This is a way that parcel can support arbitrary SWC plugins, although this might not have the best performance, and needs more tweaking to be usable.

For some reason, the SWC path resolution doesn't work unless the .swcrc references the absolute path of the plugin WASM file.

Where you see /home/ubuntu/parcel-2/... on the .swcrc that's the path on my machine,

This commit adds a parcel transformer that executes SWC.

This is a way that parcel can support arbitrary SWC plugins,
although this might not have good performance, and needs more tweaking
to be usable.

For some reason, the SWC path resolution doesn't work unless the `.swcrc`
references the absolute path of the plugin WASM file.

Where you see `/home/ubuntu/parcel-2/...` on the `.swcrc` that's the
path on my machine.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants