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-loader much slower if react refresh plugin is enabled #543
Comments
Can you share a bit more about your setup, or create a reproducible example? There have been performance fixes in the |
Thanks for the info :) Sorry if I'm light on details, but I'm still trying to come up with a reproducible example, and I can't share the whole repo since it's work related. I was asking to see if maybe this was known, could help me in research knowing where to look :) I'll be hacking around and let you know if/when I manage to reproduce it or solve the issue |
It could very much be due to source map generation, or if you have a lot of files that needs to be processed. Those are the two most likely points of clogging. |
Hi @piotrpalek did you find any solution? We are experiencing the same issue on a large project |
@marco2216 no sorry :( for now we just didn't move to |
@piotrpalek Feel free to try out if this change helps, I'm not actually sure if it has anything to do with swc-loader, but it significantly improved our transpile speed #669 |
Hey, I've tried integrating react fast refresh with
swc-loader
, and the result is that if I addnew ReactRefreshPlugin()
to theplugins: []
list in webpack,swc-loader
is dog slow (well, as slow as if I was using babel). If I remove this plugin it's way faster, any ideas what could be wrong? Is this expected?The text was updated successfully, but these errors were encountered: