class Webpacker::Manifest

def lookup_pack_with_chunks(name, pack_type = {})

def lookup_pack_with_chunks(name, pack_type = {})
  compile if compiling?
  manifest_pack_type = manifest_type(pack_type[:type])
  manifest_pack_name = manifest_name(name, manifest_pack_type)
  find("entrypoints")[manifest_pack_name][manifest_pack_type]
rescue NoMethodError
  nil
end