module Zeitwerk::Loader::Config

def collapse(*glob_patterns)

@sig (*(String | Pathname | Array[String | Pathname])) -> void

Configure directories or glob patterns to be collapsed.
def collapse(*glob_patterns)
  glob_patterns = expand_paths(glob_patterns)
  mutex.synchronize do
    collapse_glob_patterns.merge(glob_patterns)
    collapse_dirs.merge(expand_glob_patterns(glob_patterns))
  end
end