text: import Vue from 'vue'
  import Vuex from 'vuex'
  
  import defaultState from './state'
  import mutations from './mutations'
  import modules from './modules'
  import getters from './getters'
  import actions from './actions'
  
  Vue.use(Vuex)
  
  const isDev = process.env.NODE_ENV === 'development'
  
  export default () => {
    const store = new Vuex.Store({
      strict: isDev,
      state: defaultState,
      modules,
      mutations,
      getters,
      actions,
    })
  
    if (module.hot) {
      module.hot.accept([
        './state',
        './mutations',
        './actions',
        './getters',
      ], () => {
        const newState = require('./state').default
        const newMutations = require('./mutations').default
        const newActions = require('./actions').default
        const newGetters = require('./getters').default
  
        store.hotUpdate({
          state: newState,
          mutations: newMutations,
          getters: newGetters,
          actions: newActions,
        })
      })
    }
  
    return store
  }
  