Skip to content

$RefreshReg$ injected into worker files #920

@d07RiV

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?

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