SWC Support for SolidJS
Reading vitejs's docs, I've came across SWC and I'm wondering if this could be achievable using this:
https://github.com/modderme123/swc-plugin-jsx-dom-expressions
I also stumbled upon a github feed discussion where they stated that SSR and refs are not supported, please let me know π6 Replies
The problem is that DOM expressions are a moving target, so any implementation would either have to utilize the original babel plugin or follow the official version closely. That's also the reason native solid compilation in bun was never finished.
So, currently developers are struggling tracing reactive components inside the DOM to make it work with SWC ?
Hi, the SWC plugin is fairly complete and it can compile both the playground and the main site without issues
I'm not entirely sure about refs support (I haven't tested it yet and haven't worked on that part of the plugin)
And, yeah, neither SSR nor hydration work yet
Here's a config with the plugin set up (it's also got windi in it)
Glad to hear that, thanks for letting me know. tysm π
You're welcome :) Feel free to report any issues you encounter