docs: function analyzeDependencies(component) {
    const checkList = ['base'];
  
    search(
      dependencyTree({
        directory: dir,
        filename: path.join(dir, component, 'index.js'),
        filter: path => !~path.indexOf('node_modules')
      }),
      component,
      checkList
    );
  
    if (!whiteList.includes(component)) {
      checkList.push(component);
    }
  
    return checkList.filter(item => checkComponentHasStyle(item));
  }