Skip to content

Commit

Permalink
Match SassC on handling array of Imports
Browse files Browse the repository at this point in the history
  • Loading branch information
ntkme committed Jul 19, 2024
1 parent 3f7568c commit df4203f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/sassc/embedded.rb
Original file line number Diff line number Diff line change
Expand Up @@ -328,9 +328,7 @@ def canonicalize(url, context)
return
end
else
imports = @importer.imports(path, parent_path)
imports = [SassC::Importer::Import.new(path)] if imports.nil?
imports = [imports] unless imports.is_a?(Array)
imports = [*@importer.imports(path, parent_path)]
canonical_url = imports_to_native(imports, parent_dir, context.from_import, url, containing_url)
unless @importer_results.key?(canonical_url)
@file_url = canonical_url
Expand Down

0 comments on commit df4203f

Please sign in to comment.