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: ensure global stubs on runtime and signature functions #369

Merged
merged 2 commits into from
Apr 24, 2021

Conversation

pmmmwh
Copy link
Owner

@pmmmwh pmmmwh commented Apr 24, 2021

Fixes #325

The linked issue is an unsupported pattern, but due to the nature of the Babel transform unwanted calls to the register/signature functions might happen in edge cases.

This PR ensures there's a global safety net (using function stubs) so they wouldn't crash the app during HMR runtime.

@pmmmwh pmmmwh added the bug Something isn't working label Apr 24, 2021
@pmmmwh pmmmwh merged commit 2c608a6 into main Apr 24, 2021
@pmmmwh pmmmwh deleted the fix/ensure-global-stubs branch April 24, 2021 22:58
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
Development

Successfully merging this pull request may close these issues.

[0.5.0-beta.1] __webpack_require__.$Refresh$.signature is not a function
1 participant