docs: function readModelsFromPath (dir, relative, webpackContext) {
    if (!isNode()) {
      if (!webpackContext) {
        return []
      }
      if (webpackContext.keys && webpackContext.resolve) {
        return webpackContext.keys().map(m => {
          let model = webpackContext(m)
          if (model.__esModule) {
            model = model.default
          }
          return checkNS(model) ? model : {namespace: getNamespace(m, relative), ...model}
        })
      } else {
        warning(false, `'fileModels.webpackContext' is invalid.\n See https://webpack.js.org/guides/dependency-management/#context-module-api .`)
        return []
      }
    } else {
    // do nothing with empty path
      return dir ? readModels(dir, relative) : []
    }
  }