Skip to content
This repository has been archived by the owner on Jan 1, 2024. It is now read-only.

Commit

Permalink
Merge pull request #4 from xfalcox/fix-tests
Browse files Browse the repository at this point in the history
FIX: Source map url regression from e8a84b3
  • Loading branch information
johnnyshields authored Feb 4, 2023
2 parents 998aedb + b99ade6 commit 7595f33
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lib/sassc/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,12 @@ def post_process_source_map(source_map)

url = URL.parse(source_map_file_url || file_url)
data = JSON.parse(source_map)
data["file"] = if validate_source_map_path?
URL.parse(output_url).route_from(url).to_s
else
output_url
if output_url
data["file"] = if validate_source_map_path?
URL.parse(output_url).route_from(url).to_s
else
output_url
end
end
data["sources"].map! do |source|
if source.start_with?(Protocol::FILE) && validate_source_map_path?
Expand Down

0 comments on commit 7595f33

Please sign in to comment.