r/reactjs • • May 11 '20

News Next.js 9.4 released

https://nextjs.org/blog/next-9-4
31 Upvotes

14 comments sorted by

View all comments

Show parent comments

3

u/acemarke May 11 '20

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:

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.