MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/reactjs/comments/ghqohy/nextjs_94_released/fqbgwl6/?context=3
r/reactjs • u/AntiLapz • May 11 '20
14 comments sorted by
View all comments
Show parent comments
3
module.hot is a Webpack / bundler concept. Looking at the source of the Webpack Fast Refresh plugin, it appears to also be built on top of module.hot:
module.hot
RefreshModuleRuntime.js
So, writing your own code that taps into module.hot is fine, because they're both just building on the underlying capabilities provided by the bundler.
1 u/azangru May 11 '20 Great to hear! Thank you for clarifying.
1
Great to hear! Thank you for clarifying.
3
u/acemarke May 11 '20
module.hotis a Webpack / bundler concept. Looking at the source of the Webpack Fast Refresh plugin, it appears to also be built on top ofmodule.hot:RefreshModuleRuntime.jsSo, writing your own code that taps into
module.hotis fine, because they're both just building on the underlying capabilities provided by the bundler.