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: prevent runtime self-referencing via react-refresh #370

Merged
merged 2 commits into from
Apr 24, 2021

Conversation

pmmmwh
Copy link
Owner

@pmmmwh pmmmwh commented Apr 24, 2021

Fixes #324

Since RuntimeUtils has react-refresh/runtime as a dependency, it is also not safe to allow any processing on that package.

This PR ensures even if the user specifies node_modules to be processed, the plugin wouldn't crash the runtime due to cyclic imports.

@pmmmwh pmmmwh added the bug Something isn't working label Apr 24, 2021
@pmmmwh pmmmwh merged commit 8910bd8 into main Apr 24, 2021
@pmmmwh pmmmwh deleted the fix/self-referencing-runtime branch April 24, 2021 23:31
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