You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is definitely a bug, as long as it shall not remove hot(module) - only hot(module)(something), and somewhere around 4.8 we added code for babel plugin to delete another form of hot, and that's ended as a false positive.
But, anyway, I would ask you to change the code - you have to remove magic module variable, or some production optimization would be disabled.
Description
We have been using RHL with Recompose for a long time, but suddenly our production server cannot start (development is fine).
export default compose( hot(module), withSomeHOC, )(HotReloadedParent)
Upgrading past version
4.8.5
produces the following error when trying to run the code in production mode:TypeError: b.apply is not a function at node_modules/recompose/dist/Recompose.cjs.js:810:18
Seemingly the signature of
hot(module)
has changed in production mode after the above stated version?Expected behavior
It should continue to work as before. Production should ABSOLUTELY NEVER be affected by RHL
Actual behavior
Production build/deployment fails because of code error
Environment
React Hot Loader version: 4.8.5
The text was updated successfully, but these errors were encountered: