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? #10

Open
rastertail opened this issue Mar 24, 2020 · 4 comments
Open

SWC Plugin? #10

rastertail opened this issue Mar 24, 2020 · 4 comments
Labels
enhancement New feature or request

Comments

@rastertail
Copy link

SWC is an alternative to Babel that boasts having much better performance, so it would be nice to see an SWC equivalent to babel-plugin-jsx-dom-expressions (and also babel-preset-solid, though that's technically not relevant here 😄) in order to speed up the development cycle. However, I haven't looked into the similarities/differences between the two plugin APIs, so I'm not sure how much of a project this would be.

@ryansolid
Copy link
Owner

Cool I haven't seen that yet. The plugins look similar but not the same. Different syntax and path following organization. Seems like it could be possible, mind you it would also take some doing as I built the babel plugin only ever assuming babel as a target so it isn't setup to just pickup and move. Or serve multiple parsers. Definitely consideration when I rewrite and generalize things.

@ryansolid ryansolid added the enhancement New feature or request label Mar 24, 2020
@MrFoxPro
Copy link
Contributor

Yeah it would be awesome to implement transformer for ts-loader. I found that loader for babel can be rewritten for ts-loader, as there are many similar things.

@feledori
Copy link

As swc now released their wasm plugin api this would be interesting. As far as I read discussions on solidjs this would enable solid on deno. Not really capable of writing a plugin just wanted to bring up the discussion again.😄 cheers

@milomg
Copy link
Contributor

milomg commented Apr 24, 2023

Linking https://github.com/modderme123/swc-plugin-jsx-dom-expressions as an initial implementation of the client/dom transform (still super WIP, contributions are welcome)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants