code: private void findModulesFromEntryPoints(
        boolean supportEs6Modules, boolean supportCommonJSModules) {
      maybeDoThreadedParsing();
      List<CompilerInput> entryPoints = new ArrayList<>();
      Map<String, CompilerInput> inputsByProvide = new HashMap<>();
      Map<String, CompilerInput> inputsByIdentifier = new HashMap<>();
      for (CompilerInput input : moduleGraph.getAllInputs()) {
        if (!options.getDependencyOptions().shouldDropMoochers() && input.getProvides().isEmpty()) {
          entryPoints.add(input);
        }
        inputsByIdentifier.put(
            ModuleIdentifier.forFile(input.getPath().toString()).toString(), input);
        for (String provide : input.getProvides()) {
          if (!provide.startsWith("module$")) {
            inputsByProvide.put(provide, input);
          }
        }
      }
      for (ModuleIdentifier moduleIdentifier : options.getDependencyOptions().getEntryPoints()) {
        CompilerInput input = inputsByProvide.get(moduleIdentifier.toString());
        if (input == null) {
          input = inputsByIdentifier.get(moduleIdentifier.toString());
        }
        if (input != null) {
          entryPoints.add(input);
        }
      }
  
      Set<CompilerInput> workingInputSet = Sets.newHashSet(moduleGraph.getAllInputs());
      for (CompilerInput entryPoint : entryPoints) {
        findModulesFromInput(
            entryPoint,
            /* wasImportedByModule = */ false,
            workingInputSet,
            inputsByIdentifier,
            inputsByProvide,
            supportEs6Modules,
            supportCommonJSModules);
      }
    }
docs: Find modules by recursively traversing dependencies starting with the entry points.
  
  <p>Causes a regex parse of every file, and a full parse of every file reachable from the entry
  points (which would be required by later compilation passes regardless).
  
  <p>If the dependency mode is set to LOOSE, inputs which the regex parse does not identify as ES
  modules and which do not contain any provide statements are considered to be additional entry
  points.