Skip to content

$RefreshReg$ injected into worker files #920

Description

@d07RiV

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions