-
-
Notifications
You must be signed in to change notification settings - Fork 47
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
Implement SWC plugin #487
Comments
+1 I also would like to se a SWC implementation therefore it would be a lot faster than babel like vite seem to move to SWC as well for the same reasons https://github.com/vitejs/vite-plugin-react-swc/blob/main/src/refresh-runtime.js |
Hey, on the Babel side of things the two transforms are almost identical. The main difference in the Preact one is that we have this part extra to maintain and reset context references correctly |
This comment was marked as off-topic.
This comment was marked as off-topic.
A SWC plugin has been implemented at swc-project/plugins#326 |
It's also published! https://www.npmjs.com/package/@swc/plugin-prefresh |
I'd like to help port the babel plugin to SWC. Can somebody please explain what the differences are between the react version and the Preact version? I plan to start with the react version (already ported) and make the necessary changes to support Preact.
The text was updated successfully, but these errors were encountered: