I have a React project with a worker, and sometimes things like $RefreshReg$ calls end up in worker code, which breaks it.
If there was a way to control that, that would be fine, but the rules seem to be very arbitrary. For instance, the problem occurs if a function name starts with uppercase (and the module otherwise has nothing to do with React, no imports at all), but renaming it to lowercase fixes it?
I have a React project with a worker, and sometimes things like
$RefreshReg$calls end up in worker code, which breaks it.If there was a way to control that, that would be fine, but the rules seem to be very arbitrary. For instance, the problem occurs if a function name starts with uppercase (and the module otherwise has nothing to do with React, no imports at all), but renaming it to lowercase fixes it?