Skip to content

Commit

Permalink
Compressor output as hash with data key
Browse files Browse the repository at this point in the history
  • Loading branch information
javier-menendez committed Oct 8, 2023
1 parent 9dce7a4 commit c0b78b4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/sprockets_terser_with_source_maps/compressor.rb
Expand Up @@ -45,7 +45,9 @@ def call(input)
'js.map'
)

compressed_js.concat "\n//# sourceMappingURL=#{sourcemap_url}\n"
js = compressed_js.concat "\n//# sourceMappingURL=#{sourcemap_url}\n"

{ data: js, map: sourcemap }
end

private
Expand Down

0 comments on commit c0b78b4

Please sign in to comment.