From c85ce21951cdcc1876015d303e455c0644682675 Mon Sep 17 00:00:00 2001 From: Yamel Senih Date: Sun, 19 May 2019 23:10:30 -0400 Subject: [PATCH] perf[store]: add support to sub-modules (#2047) --- src/store/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/index.js b/src/store/index.js index 70736d3a..0fd83955 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -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