Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: properly test for react-refresh imports #380

Merged
merged 1 commit into from
May 5, 2021

Conversation

pmmmwh
Copy link
Owner

@pmmmwh pmmmwh commented May 5, 2021

This was caused by a fix introduced in #370 which is supposed to fix #324 - however the test was not specific enough and would break any app that includes the text react-refresh.

To workaround that, a require-based approach is used now to prevent the issue while maintaining the behaviour of not crashing even if the whole node_modules is marked to be processed by the plugin.

Fixes #379

@pmmmwh pmmmwh added the bug Something isn't working label May 5, 2021
@pmmmwh pmmmwh merged commit f6cf6b6 into main May 5, 2021
@pmmmwh pmmmwh deleted the fix/react-refresh-detection branch May 5, 2021 22:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant