Skip to content

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.
@yamadapc yamadapc force-pushed the issue/swc-transformer branch from 9f6de63 to acdb9e0 Compare July 8, 2024 04:04
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.

2 participants