code: function isComponentPath (rootDir, pathname) {
    // let basename = path.basename(pathname)
    // 非入口文件的增减则不做任何处理
    if (!/(mip-[\w-]+)\/\1\.(vue|js)$/.test(pathname)) {
      return false
    }
  
    let basename = path.basename(pathname)
  
    return path.resolve(
      componentsDir(rootDir),
      path.basename(basename, path.extname(basename)),
      basename
    ) === path.resolve(pathname)
  }
docs: function storeDir (dir) { return path.resolve(dir, 'store') }