perf[store]: add support to sub-modules (#2047)

This commit is contained in:
Yamel Senih 2019-05-19 23:10:30 -04:00 committed by Pan
parent fa23feeed4
commit c85ce21951
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ import getters from './getters'
Vue.use(Vuex)
// https://webpack.js.org/guides/dependency-management/#requirecontext
const modulesFiles = require.context('./modules', false, /\.js$/)
const modulesFiles = require.context('./modules', true, /\.js$/)
// you do not need `import app from './modules/app'`
// it will auto require all vuex module from modules file