Closed ghost closed 4 years ago
This looks to me like a function to scan the file system and include any new Vuex modules that have been created or updated, so whenever the hot reloading gets triggered this makes sure it has all modules in the directory (and children), then back around the function call...
It updates the state with the data before the update.
Hope this helps!
Thanks @joshgrib for filling in to provide more info/context though!
https://github.com/chrisvfritz/vue-enterprise-boilerplate/blob/2b052bac9de33712e642a6477ca73643b0d25ae1/src/state/modules/index.js#L61
I don't understand what is going on here. I am trying to make something similar but HMR only works once.