Open wmertens opened 5 years ago
I'm wondering if there is anything wrong with doing this:
let App = <span>Hi</span> if (module.hot) { App = require('react-hot-loader/root').hot(App) } export default App
I think this does the same as what is proposed in the readme, and it is marginally more efficient after dead code removal.
Babel plugin is removing hot in production, but not hot from /root. @smelukov 🙏, could you save the day?
hot
I'm wondering if there is anything wrong with doing this:
I think this does the same as what is proposed in the readme, and it is marginally more efficient after dead code removal.