class Sprockets::Rails::SourcemappingUrlProcessor
def call(input)
def call(input) env = input[:environment] context = env.context_class.new(input) data = input[:data].gsub(REGEX) do |_match| sourcemap_logical_path = combine_sourcemap_logical_path(sourcefile: input[:name], sourcemap: $1) begin resolved_sourcemap_comment(sourcemap_logical_path, context: context) rescue Sprockets::FileNotFound removed_sourcemap_comment(sourcemap_logical_path, filename: input[:filename], env: env) end end { data: data } end