I thought using modules mode will automatically add in the HMR code but found out that it is not.
https://vuex.vuejs.org/en/hot-reload.html
<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This feature request is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c276">#c276</a>)</em></sub></div>