build/build-style-entry.js
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));
}
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));
}
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 ) ) ; }
analyze component dependencies
analyze component dependencies