-
Notifications
You must be signed in to change notification settings - Fork 799
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
After react-hot-loader/babel plugin compiled, some code missing #1388
After react-hot-loader/babel plugin compiled, some code missing #1388
Comments
Documentation many times points on the specific on
And in production |
@theKashey thank you for your reply. I have to say that I am not familiar with hot-loader before, and previously in our code use But after added another HOC to the You may be familiar with the features and think it reasonable, but I think there must be some improvements that can make hot-loader better? Maybe crash in the beginning or give a tip? or just close this issue. BTW, I couldn't get your points in the last sentence:
Actually, in my case, it looks like at least keep one HOC, and that's the reason why we didn't have any issues before, because we only had one HOC here. Anyway, thank you. |
The logic is quite simple, with 3 use cases for If you cant change your code to an expected version( |
Absolutely can understand, there are so many different use cases outside. Just addressed this issue today, next Monday will upgrade to the recommended Thanks again, should I close this issue? |
Not yet. Your case should be added to the tests, so keep it open until then |
Description
What you are reporting: BUG
Expected behavior
What you think should happen: The code should work as expected.
Actual behavior
What actually happens: After enabling
react-hot-loader/babel
plugin and compiling, some parts of code missing, and only in theproduction
environment, caused a serious production level issue.Environment
React Hot Loader version: ^4.12.15
Run these commands in the project folder and fill in their results:
node -v
: v10.15.3npm -v
: 6.4.1Then, specify:
Reproducible Demo
Demo here: https://github.com/yujiangshui/hot-loader-replace-issue. Please follow the instruction on README.md.
The text was updated successfully, but these errors were encountered: