Skip to content

A new option to avoid @pmmmwh/react-refresh-webpack-plugin/client/ReactRefreshEntry.js being injected #680

Open

Description

@Jack-Works

I need to install react devtools hook (not from the devtools extension) before the reach refresh hook, so I need to inject those hooks manually.

Now I use webpack config to alias it to a null module.

alias[require.resolve('@pmmmwh/react-refresh-webpack-plugin/client/ReactRefreshEntry.js')] =
                        require.resolve('./package-overrides/null.js')

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