code: function getModule (filename) {
    const file = files(filename)
    const module = file.default || file
    if (module.commit) {
      throw new Error('[vssr] <%= dir.store %>/' + filename.replace('./', '') + ' should export a method which returns a Vuex instance.')
    }
    if (module.state && typeof module.state !== 'function') {
      throw new Error('[vssr] state should be a function in <%= dir.store %>/' + filename.replace('./', ''))
    }
    return module
  }
docs: Dynamically require module