Skip to content

Commit

Permalink
perf[store]: add support to sub-modules (PanJiaChen#2047)
Browse files Browse the repository at this point in the history
  • Loading branch information
yamelsenih authored and marxangels committed May 20, 2019
1 parent e4ff79d commit 559ac4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/store/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 559ac4e

Please sign in to comment.