Skip to content

Commit fa7cabf

Browse files
Make source maps work for assets in subdirectories
1 parent 993c67d commit fa7cabf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/propshaft/compiler/source_mapping_urls.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def compile(asset, input)
1111

1212
private
1313
def asset_path(source_mapping_url, logical_path)
14-
source_mapping_url.gsub!(/^(.+\/)?#{url_prefix}\//, "")
14+
source_mapping_url = ::File.basename(source_mapping_url)
1515

1616
if logical_path.dirname.to_s == "."
1717
source_mapping_url

0 commit comments

Comments
 (0)