pradel / create-react-app-swc

Use swc in your create-react-app for faster compilation, development and tests
MIT License
129 stars 11 forks source link

Hot refresh #5

Closed jacob-j closed 2 years ago

jacob-j commented 3 years ago

Hello guys! Fantastic setup, we have begun testing this with our large react app. Everything seems to be running fine, except Hot Refresh when recompiling due to file change.

Have we done something wrong in our config? We tried adding .swcrc with jsc.transform.reactset to "automatic". We also tried adding the same to the swc-loader plugin.

jacob-j commented 3 years ago

Temporary solution is disabling hot refresh, as demonstrated here: https://stackoverflow.com/a/65543913 This works for now, not sure why hot refresh is not working, but seems to be a general problem with CRA

pradel commented 3 years ago

Yeah seems like a common problem, unfortunately.

pradel commented 2 years ago

I am closing this one as it's related to CRA