class Sprockets::Rails::SourcemappingUrlProcessor

def combine_sourcemap_logical_path(sourcefile:, sourcemap:)

def combine_sourcemap_logical_path(sourcefile:, sourcemap:)
  if (parts = sourcefile.split("/")).many?
    parts[0..-2].append(sourcemap).join("/")
  else
    sourcemap
  end
end